mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 12:48:43 -03:00
Fix minor typo (#124)
This commit is contained in:
parent
88e905a4c2
commit
76361c407f
@ -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>
|
<a name="delete-any-commit"></a>
|
||||||
### Delete/remove arbitrary commit
|
### Delete/remove arbitrary commit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user