Tired of GUI Git?
29 March 19

A while ago I went back to basics and learned to use Git in the terminal properly and quickly found I only need a single command 95% of the time.

Most of the time I just want to stage all the changes in a folder, make a commit with a message and push to remote.

Here’s what I type to do this in one line:

gacp 'FIX: a commit with a fix'

and the function to do this:

gacp () {
 git status &&
 git add . &&
 git commit -m "$commitMsg" &&
 git push


< Return to posts