Last active
September 18, 2017 11:46
-
-
Save eyalgo/9287693 to your computer and use it in GitHub Desktop.
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
# Basic | |
git config --global alias.st status | |
git config --global alias.co checkout | |
git config --global alias.ci commit | |
git config --global alias.br branch | |
# Branches | |
git config --global alias.buf "checkout -b" | |
git config --global alias.puf "push -u origin" | |
git config --global alias.addd 'add --all' | |
# Manipulation | |
git config --global alias.unstage 'reset HEAD --' | |
# Log | |
git config --global alias.last 'log -1 HEAD' | |
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" | |
# Identity | |
git config --global user.email "[email protected]" | |
git config --global user.name "Eyal Golan" | |
git config --global core.whitespace "cr-at-eol" | |
#windows | |
git config --global core.autocrlf true | |
#Linux | |
git config --global core.autocrlf input |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment