Git Alias

Git Alias:

I thought this deserves it’s own little page.

Following will create an alias for git add, commit, and push

git config alias.acp '! acp() { git add . && git commit -m \"$1\" && git push ; } ; acp'  

Use it like this:

git acp "your commit message"

Depending on your setup, you may also want to add git pull before you git add, but I am sure you can figure out how to do that. Isn’t this something?

Page Update: