Skip to content

Instantly share code, notes, and snippets.

@SofHad
Created February 19, 2015 11:33
Show Gist options
  • Save SofHad/4d8d6fa40d14807fd773 to your computer and use it in GitHub Desktop.
Save SofHad/4d8d6fa40d14807fd773 to your computer and use it in GitHub Desktop.
Git alias
alias.co checkout
alias.ci commit
alias.rb rebase
alias.st status
alias.br branch
alias.submodule-pull-all submodule foreach git pull --all
alias.submodule-fetch-all submodule foreach git fetch --tags
alias.sup submodule update --init --recursive
alias.lol log --graph --decorate --pretty=oneline --abbrev-commit
alias.lola log --graph --decorate --pretty=oneline --abbrev-commit --all
alias.lpush !git log origin/$(git currentbranch)..HEAD
alias.lpull !git log HEAD..origin/$(git currentbranch)
alias.whatsnew !git diff origin/$(git currentbranch)...HEAD
alias.whatscoming !git diff HEAD...origin/$(git currentbranch)
alias.cam commit -a -m
alias.w whatchanged
@SofHad
Copy link
Author

SofHad commented Feb 19, 2015

To diaplay
git config --get-regexp alias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment