Learning To Use Git

Setting Up Aliases

A great place to start concatenating git commands is in your shell's rc file. I currently use Oh-My-Zsh, in which case I'd vim into it and add aliases like so.

vim ~/.zshrc

You can add in extra aliases to fit your needs, but below is just a list of the main git commands one would use most of the time.

# Insert these main aliases
alias gaa = "git add ."
alias gstat = "git status"
alias gdiff = "git diff"
alias gcm = "git commit -m"...

Read Blog Post