git amend alias


/ Published in: Bash
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. [alias]
  2. amend = commit --amend -C HEAD

Report this snippet


Comments


You need to login to view comments.