Skip to content

Instantly share code, notes, and snippets.

@NateFerrero
Last active August 29, 2015 14:21
Show Gist options
  • Save NateFerrero/dd9d1c7d0ee11d460153 to your computer and use it in GitHub Desktop.
Save NateFerrero/dd9d1c7d0ee11d460153 to your computer and use it in GitHub Desktop.
Git Aliases
# Git
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
alias gx='git clone'
alias ga='git add'
alias gw='git show'
alias gc='git commit'
alias gd='clear; git diff --color'
alias gd.='clear; git diff --color HEAD^'
alias gg='clear; more .git/config'
alias gi='clear; more .gitignore'
alias gl='clear; git lg'
alias gg.='clear; nano .git/config'
alias gi.='clear; nano .gitignore'
alias gf='git fetch'
alias gfo='git fetch origin'
alias gr='git rebase'
alias gs='git status -sb'
alias gp='git pull'
alias grom='git rebase origin/master'
alias grod='git rebase origin/develop'
alias gfrom='gf;grom'
alias gfrod='gf;grod'
alias gh='ghom'
alias ghom='git push origin master'
alias ghod='git push origin develop'
alias gpom='git pull origin master'
alias gpod='git pull origin develop'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment