Created
September 22, 2020 06:01
-
-
Save suchasplus/92226a199f22209a50de5ff2ce630ce7 to your computer and use it in GitHub Desktop.
git team config
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
#团队协作Git配置推荐 https://sq.163yun.com/blog/article/197477848982818816 | |
git config --global core.eol lf | |
git config --global core.autocrlf input | |
git config --global core.safecrlf false | |
git config --global core.whitespace trailing-space,space-before-tab,-cr-at-eol | |
git config --global merge.ff only | |
git config --global tag.sort version:refname | |
git config --global log.date iso | |
#使用Tab缩进, 并在修复时将4空格替换为Tab | |
git config --global core.whitespace trailing-space,space-before-tab,-cr-at-eol,indent-with-non-tab,-tab-in-indent,tabwidth=4 | |
#使用空格缩进, 并在修复时将Tab替换为4空格 | |
#git config --global core.whitespace trailing-space,space-before-tab,-cr-at-eol,-indent-with-non-tab,tab-in-indent,tabwidth=4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment