Skip to content

Instantly share code, notes, and snippets.

@alexander-schranz
Created October 7, 2015 11:00
Show Gist options
  • Select an option

  • Save alexander-schranz/6cdbeefe4f272fcb1d8d to your computer and use it in GitHub Desktop.

Select an option

Save alexander-schranz/6cdbeefe4f272fcb1d8d to your computer and use it in GitHub Desktop.
Git Bash Alias
alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias gco='git checkout'
alias gac='git commit -a'
alias gp='git push'
alias gpo='git push origin'
alias gl='git pull'
alias glo='git pull origin'
alias gm='git merge --no-ff'
alias gr='git reset'
alias grh='git reset --hard'
alias gre='git remote'
alias grm="git rm"
alias gcl="git clone"
alias gd="git diff"
alias gds="git diff --staged"
alias gb='git branch'
alias gbd='git branch -d'
alias gf='git fetch'
alias gfo='git fetch origin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment