Skip to content

Instantly share code, notes, and snippets.

@ArtSabintsev
Created April 20, 2017 20:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArtSabintsev/d9db344999588a9b23d312714349aa6f to your computer and use it in GitHub Desktop.
Save ArtSabintsev/d9db344999588a9b23d312714349aa6f to your computer and use it in GitHub Desktop.
Useful Git Aliases
alias ga='git add . && git status'
alias gb='git branch'
alias gbd='git branch -D'
alias gch='git checkout'
alias gcam='git commit -am'
alias gp='git push'
alias gpo='git push origin'
alias gs='git status'
alias gu='git pull --all && git fetch -p && git branch --merged | grep -v '^*' | grep -v master | grep -v develop | xargs -n 1 git branch -d && git branch -a'
alias gclean='git clean -fd && git reset && git checkout -f && git status'
alias gl='git log --all --graph --oneline --decorate'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment