Nick Berens Front End Developer, Designer, Consultant

Git Alias

I love me some git, but I hate typing. My first world problem is having to type git add -A and git commit -m "my message" over and over again.

Git Alias To The Rescue

The first step is to fire up a terminal window and run the following:

git config --global alias.add-commit '!git add -A && git commit'

Now you can use:

git add-commit -m 'My commit message'

comments powered by Disqus