Skip to content

Instantly share code, notes, and snippets.

@coelhoadler
Created August 31, 2017 13:15
Show Gist options
  • Select an option

  • Save coelhoadler/6a72a309e6be7bc3dfd41ba872d9fcde to your computer and use it in GitHub Desktop.

Select an option

Save coelhoadler/6a72a309e6be7bc3dfd41ba872d9fcde to your computer and use it in GitHub Desktop.
Alias for Git.

All you have to do is type "alias [shortcut]='[original command]'

Here's a list of general ones I have set up for Git. You could copy and paste these directly or make your own.

alias gst='git status'
alias gc='git commit'
alias gco='git checkout'
alias gl='git pull'
alias gpom="git pull origin master"
alias gp='git push'
alias gd='git diff | mate'
alias gb='git branch'
alias gba='git branch -a'
alias del='git branch -d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment