Git add and commit in a Single Line FTW!

Screen Shot 2013-07-06 at 2.47.43 PM
Moving from SVN to Git seemed to add a few extra steps into my work flow with committing adding push etc. Yes! I’m aware Git isn’t SVN and it provides more flexibility.

Anyway I wanted the ability to add && commit in a single line.

Simply adding this to git config made my dreams come true:

$git config –global alias.add-co ‘!git add -A && git commit’

Leave a Reply

Your email address will not be published. Required fields are marked *