git rewrite history
Change the last commit
$ git commit --amend
If I forgot to add or remove a file, I can first run git add
or git rm
, then git commit --amend
.
blog comments powered by Disqus
Published
14 May 2013
Change the last commit
$ git commit --amend
If I forgot to add or remove a file, I can first run git add
or git rm
, then git commit --amend
.