Created
August 4, 2012 05:13
-
-
Save xiangyuan/3254727 to your computer and use it in GitHub Desktop.
git config params
This file contains 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
Global ignore file: | |
echo ".DS_Store" >> ~/.gitignore | |
git config --global core.excludesfile ~/.gitignore | |
SVN-like shortcuts for often used commands: | |
git config --global alias.st status | |
git config --global alias.ci commit | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
Information about the author/commiter: | |
git config --global user.name "Your Name Comes Here" | |
git config --global user.email [email protected] | |
Colorized output: | |
git config --global color.branch auto | |
git config --global color.diff auto | |
git config --global color.interactive auto | |
git config --global color.status auto | |
TextMate as the default editor: | |
git config --global core.editor "mate -w" | |
Opendiff (FileMerge) to resolve merge conflicts: | |
git config --global merge.tool opendiff | |
Change the font in gitk: Open ~/.gitk and add: | |
set mainfont {Monaco 12} | |
set textfont {Monaco 12} | |
set uifont {Monaco 12} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment