4,461
edits
→Merge a branch: Delete a branch |
→Undo last commit: Fix or amend last commit |
||
Line 168: | Line 168: | ||
$ git revert HEAD | $ git revert HEAD | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Fix or amend last commit == | |||
<source lang="bash"> | |||
$ git commit --amend | |||
</source> | |||
== Reset the branch to a specific point in the past == | == Reset the branch to a specific point in the past == |