Fix minor typo (#124)

This commit is contained in:
Nick Kirby 2017-11-10 21:04:58 +00:00 committed by Richard Littauer
parent 88e905a4c2
commit 76361c407f
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ If you haven't pushed, to reset Git to the state it was in before you made your
```
This only works if you haven't pushed. If you have pushed, the only truly safe thing to do is `git revert SHAofBadCommit`. That will create a new commit that undoes all the previous commit's changes. Or, if the branched you pushed to is rebase-safe (ie. other devs aren't expected to pull from it), you can just use `git push --force-with-lease`. For more, see [the above section](#deleteremove-last-pushed-commit).
This only works if you haven't pushed. If you have pushed, the only truly safe thing to do is `git revert SHAofBadCommit`. That will create a new commit that undoes all the previous commit's changes. Or, if the branch you pushed to is rebase-safe (ie. other devs aren't expected to pull from it), you can just use `git push --force-with-lease`. For more, see [the above section](#deleteremove-last-pushed-commit).
<a name="delete-any-commit"></a>
### Delete/remove arbitrary commit