Created
September 4, 2013 12:54
-
-
Save linus-young/6436530 to your computer and use it in GitHub Desktop.
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
git config --global user.name "linus-young" | |
git config --global user.email "test@test.com" | |
git config --global color.ui true # 开启全部颜色效果 | |
# 常用命令alias | |
git config --global alias.cm commit | |
git config --global alias.st status | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ps push | |
# 使用vim 作为默认编辑器 | |
git config --global core.editor vim | |
# 如果你在windows下使用git或是你的队友中有人使用win,你可以用下面这行命令来解决line-ending的问题。 | |
git config --global core.autocrlf true # 自动将CRLF的结束符转换为LF的结束符 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment