Created
May 6, 2013 03:23
-
-
Save lvjian700/5523204 to your computer and use it in GitHub Desktop.
Git basic config for Windows
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
| @ECHO OFF | |
| git config --global user.name "lvjian" | |
| git config --global user.email "[email protected]" | |
| echo 配置别名 | |
| git config --global alias.co "checkout" | |
| git config --global alias.st "status" | |
| git config --global alias.ci "commit" | |
| echo 配置默认编辑器 | |
| git config --global core.editor "notepad++ -f" | |
| echo 配置 git 输出提示的颜色 | |
| git config --global color.ui "auto" | |
| echo 配置换行符格式 | |
| echo windows: 输出的时候转换 | |
| git config --global core.autocrlf true | |
| echo git log 日期输出格式[2011-11-24 19:29:59 +0800] | |
| git config --global log.date iso | |
| echo git pull/push操作的目标设定 | |
| git config --global branch.master.remote origin | |
| git config --global branch.master.merge refs/heads/master | |
| echo 完成配置 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment