Git: Difference between revisions

Jump to navigation Jump to search
→‎Tags: add remove tags
→‎Fix or amend last commit: undo changes to a file
Line 314: Line 314:
<source lang="bash">
<source lang="bash">
$ git commit --amend
$ git commit --amend
</source>
== Undo changes to a file ==
<source lang="bash">
$ git checkout -- filename
</source>
</source>