Show status of current branch
alias gst="git status"
Create a commit with a message
alias gcmsg="git commit --message"
Create a new branch
alias gcb="git checkout -b"
Checkout a branch
alias gco="git checkout"
Stage changes in patch mode. Allows for selecting changes to stage by hunk.
alias gapa="git add --patch"
Cherry-pick a commit
alias gcp="git cherry-pick"
Amend commit (e.g. gfix fc54ac3
will create a fixup for the commit fc54ac3)
alias gfix="git commit --fixup"
Auto-squash fixes (e.g. gash master
will rebase the current branch on master and autosquash all the fixups made with gfix)
alias gash="git rebase --autosquash --interactive"