Skip to content

Instantly share code, notes, and snippets.

@linus-young
Created September 4, 2013 12:54
Show Gist options
  • Save linus-young/6436530 to your computer and use it in GitHub Desktop.
Save linus-young/6436530 to your computer and use it in GitHub Desktop.
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