Skip to content

Commit 97b1ddf

Browse files
authored
Update README.md
1 parent 456eb18 commit 97b1ddf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,13 @@ ___
108108
* Your workspace is tModLoader 99% of the time. If it isn't, we imply you know what you're doing.
109109
3. Create a new commit to commit the patches/ folder
110110
* Before you push your commit, please check our [contribution article](https://github.com/bluemagic123/tModLoader/blob/master/CONTRIBUTING.md). Thanks.
111+
112+
### HELP! I accidentally committed on a wrong branch!
113+
Simply stash changes and checkout.
114+
___
115+
1. Open in git shell/bash or whatever
116+
2. Run `git stash save` or `git stash` (should default to save)
117+
3. Run `git checkout -b xxxx`
118+
* Replace xxxx by branch name
119+
* Omit -b if not creating a new branch
120+
4. Run `git stash pop`

0 commit comments

Comments
 (0)