Merge pull request #42 from RichardLitt/git-commit-wrong-branch-33

Added note about git push
This commit is contained in:
Richard Littauer 2015-03-14 10:26:29 -07:00
commit a2d407f12e
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ Create the new branch while remaining on master:
(master)$ git branch new-branch
```
Find out what the commit hash you want to set your master branch to (`git log` should do the trick). Then reset to that hash.
Find out what the commit hash you want to set your master branch to (`git log` should do the trick). Then reset to that hash. `git push` will make sure that this change is reflected on your remote.
For example, if the hash of the commit that your master branch is supposed to be at is `a13b85e`: