Skip to content

Instantly share code, notes, and snippets.

@darjanin
Created June 22, 2021 08:15
Show Gist options
  • Save darjanin/b45258f8b46fc50676420a63bf950780 to your computer and use it in GitHub Desktop.
Save darjanin/b45258f8b46fc50676420a63bf950780 to your computer and use it in GitHub Desktop.
Alias for git
alias ga='git add'
alias gb='git branch'
alias gc='git commit -v'
alias gcb='git checkout -b'
alias gco='git checkout'
alias gcm='git checkout master'
alias gd='git diff'
alias gl='git pull'
alias gm='git merge'
alias glg='git log --all --graph --pretty=format:"%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit --date=relative'
alias gp='git push'
alias gst='git status -sb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment