Posted By

jturmel on 08/27/10


Tagged

alias git amend


Versions (?)

git amend alias


 / Published in: Bash
 

So we use Gerrit for code reviewing and I run git commit --amend quite a bit, a lot of times I don\\'t want to amend the message I just want to add my new files to my existing commit and keep working, this makes that part easier. Just add this to your global .gitconfig file. Now you can just run git amend after staging your files and it won\'t ask you to edit the message.

  1. [alias]
  2. amend = commit --amend -C HEAD

Report this snippet  

You need to login to post a comment.