Last active
October 12, 2015 00:38
-
-
Save moznion/3944260 to your computer and use it in GitHub Desktop.
Set up git
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
#!/bin/sh | |
# Alias | |
git config --global alias.br 'branch' | |
git config --global alias.ci 'commit' | |
git config --global alias.co 'checkout' | |
git config --global alias.di 'diff' | |
git config --global alias.dw 'diff --word-diff' | |
git config --global alias.l 'log --decorate' | |
git config --global alias.mg 'merge' | |
git config --global alias.pl 'pull' | |
git config --global alias.ps 'push' | |
git config --global alias.rb 'rebase' | |
git config --global alias.st 'status -sb' | |
# Other | |
git config --global color.ui auto | |
git config --global core.editor vim | |
# Newline character | |
git config --global core.autocrlf input | |
git config --global core.safecrlf true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment