Created
July 6, 2012 10:07
-
-
Save joel/3059347 to your computer and use it in GitHub Desktop.
Git Alias
This file contains hidden or 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
alias gs='git status && git branch' | |
alias gsa='git status && git branch -a' | |
alias gp='git push && git branch' | |
alias gc='git commit -v -a' | |
alias gcb='git checkout' | |
alias gnb='git checkout -b' | |
alias ga='git add .' | |
alias gl='git log && git branch' | |
alias gln='git log -n 1 && git branch' | |
alias gd='git log --diff-filter=D --summary' | |
alias grev-list='git rev-list -n 1 HEAD --' # git rev-list -n 1 HEAD -- <file_path> | |
alias gb='git branch' | |
alias glp="git log --pretty=format:'%Cred%h%Creset - %C(yellow)%ae%Creset - %Cgreen%cd%Creset - %s%Creset' --abbrev-commit --date=iso" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment