Last active
August 19, 2017 21:50
-
-
Save jameshiggins/a20139659ac601be055f2a68ea4057f5 to your computer and use it in GitHub Desktop.
git aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#git aliases | |
alias gaa="git add ." | |
alias gs='git status' | |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias ga='git add' | |
alias gac='git commit -am' | |
alias gc='git commit -m' | |
alias gcl='git config --list' | |
alias gcm='git checkout master' | |
alias gco='git checkout' | |
alias gd='git diff' | |
alias gopush='git push origin master' | |
alias gist='nocorrect gist' | |
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk' | |
alias gl='git log --pretty='\''format:%Cgreen%h%Creset %an - %s'\'' --graph' | |
alias glg='git log --graph --pretty=format:"%Cred%h%Creset %C(yellow)%an%d%Creset %s %Cgreen(%cr)%Creset" --date=relative' | |
alias glgg='git log --graph --max-count=5' | |
alias glgga='git log --graph --decorate --all' | |
alias glo='git log --oneline' | |
alias globurl='noglob urlglobber ' | |
alias glp=_git_log_prettily | |
alias gp='git push' | |
alias gr='git remote' | |
alias grh='git reset HEAD' | |
alias grhh='git reset HEAD --hard' | |
alias nah="git reset --hard; git clean -df;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment