Skip to content

Instantly share code, notes, and snippets.

@johnhunter
Last active April 23, 2022 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnhunter/1170206 to your computer and use it in GitHub Desktop.
Save johnhunter/1170206 to your computer and use it in GitHub Desktop.
Git Bash aliases
# git aliases
alias gs='git status'
alias ga='git add $1'
alias gb='git branch $1'
alias gcl='git clone $1'
alias gco='git checkout $1'
alias gm='git commit -m $1'
alias gma='git commit -am $1'
alias gph='git push'
alias gpl='git pull'
alias gpr='git pull -r'
alias gfp='git fetch -p'
alias gl='git log --pretty=format:"%Cgreen%h %Creset %s %Cblueby %an (%ar) %Cred %d" --graph'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment