work:git-config
This is an old revision of the document!
Windows上git的配置
在Windows上使用git需要一些特殊的配置.
最近从github.com上clone代码,没做任何修改用git status查看状态,就会发现有些文件被自动修改了,但实际上我没有做任何修改. 出现这个问题就是crlfd做怪了,需要用下面的命令将它转为false
git config --global core.autocrlf false
如果要查看当前的配置:
git config -l
$ git config -l core.symlinks=false core.autocrlf=true color.diff=auto pack.packsizelimit=2g help.format=html http.sslcainfo=/bin/curl-ca-bundle.crt sendemail.smtpserver=/bin/msmtp.exe user.name=Percy Peng user.email=Percy.Peng@qisda.com core.autocrlf=false
参考
/var/www/dokuwiki/wiki/data/attic/work/git-config.1277688109.txt.gz · Last modified: 2016/05/05 13:06 (external edit)