Git: Difference between revisions

Jump to navigation Jump to search
85 bytes added ,  16 November 2017
→‎Undo last commit: Fix or amend last commit
→‎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 ==

Navigation menu