From 76361c407fec859dfac6766be827161396133488 Mon Sep 17 00:00:00 2001 From: Nick Kirby Date: Fri, 10 Nov 2017 21:04:58 +0000 Subject: [PATCH] Fix minor typo (#124) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 21d0ee2..1730c09 100644 --- a/README.md +++ b/README.md @@ -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). ### Delete/remove arbitrary commit