Skip to content

Instantly share code, notes, and snippets.

@renzofp
Created July 20, 2020 17:50
Show Gist options
  • Save renzofp/dcbacad6ae2198b6fb51520888feeed2 to your computer and use it in GitHub Desktop.
Save renzofp/dcbacad6ae2198b6fb51520888feeed2 to your computer and use it in GitHub Desktop.
Git aliases
alias gs="git status -sb"
alias gc="git commit -m"
alias gd="git diff"
alias gch="git checkout"
alias gl="git log --all --decorate --oneline --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gchanges="gl -p"
alias gls="gl -n 10"
alias gp="git push"
alias gpl="git pull origin"
alias gb="git branch"
alias gstash="git stash"
alias gau="git add -u"
alias ga="git add"
alias grha="git reset --HARD"
alias gcp="git cherry-pick"
alias gf="git fetch origin"
alias grv="git remote -v"
alias gro="git remove origin"
alias gao="git add origin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment