Return to Snippet

Revision: 31024
at August 27, 2010 12:19 by jturmel


Initial Code
[alias]
        amend = commit --amend -C HEAD

Initial URL


Initial Description
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.

Initial Title
git amend alias

Initial Tags
git

Initial Language
Bash