Skip to content

Instantly share code, notes, and snippets.

@elazar
Last active February 20, 2020 23:19
Show Gist options
  • Save elazar/b71ecb1daa3fa825d6ac88e367d7959b to your computer and use it in GitHub Desktop.
Save elazar/b71ecb1daa3fa825d6ac88e367d7959b to your computer and use it in GitHub Desktop.
git aliases
alias ga="git add"
alias gai="git add --interactive"
alias gb="git branch"
alias gbd="git branch -D"
alias gc="git commit"
alias gca="git commit --amend"
alias gcm="git commit -m"
alias gco="git checkout"
alias gcob="git checkout -b"
alias gd="git diff"
alias gdc="git diff --cached"
alias gg="git grep"
alias gl="git log"
alias gpl="git pull"
alias gps="git push"
alias grbc="git rebase --continue"
alias gs="git status"
alias gst="git stash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment