Created
February 17, 2015 08:46
-
-
Save Gregcop1/737a057c4930cbb02fed to your computer and use it in GitHub Desktop.
Git aliases
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
# Git Aliases | |
alias gcl='git clone' | |
alias ga='git add' | |
alias gall='git add .' | |
alias gus='git reset HEAD' | |
alias gm="git merge" | |
alias g='git' | |
alias get='git' | |
alias gst='git status' | |
alias gs='git status' | |
alias gss='git status -s' | |
alias gl='git pull' | |
alias gpr='git pull --rebase' | |
alias gpp='git pull && git push' | |
alias gup='git fetch && git rebase' | |
alias gp='git push' | |
alias gpo='git push origin' | |
alias gdv='git diff -w "$@" | vim -R -' | |
alias gc='git commit -v' | |
alias gca='git commit -v -a' | |
alias gcm='git commit -v -m' | |
alias gci='git commit --interactive' | |
alias gb='git branch' | |
alias gba='git branch -a' | |
alias gcount='git shortlog -sn' | |
alias gcp='git cherry-pick' | |
alias gco='git checkout' | |
alias gexport='git archive --format zip --output' | |
alias gdel='git branch -D' | |
alias gmu='git fetch origin -v; git fetch upstream -v; git merge upstream/master' | |
alias gll='git log --graph --pretty=oneline --abbrev-commit' | |
alias gg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" | |
alias ggs="gg --stat" | |
alias gsl="git shortlog -sn" | |
alias gw="git whatchanged" | |
alias gt="git tag" | |
alias gta="git tag -a" | |
alias gtd="git tag -d" | |
alias gtl="git tag -l" | |
# From http://blogs.atlassian.com/2014/10/advanced-git-aliases/ | |
# Show commits since last pull | |
alias gnew="git log HEAD@{1}..HEAD@{0}" | |
# Add uncommitted and unstaged changes to the last commit | |
alias gcaa="git commit -a --amend -C HEAD" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment