Skip to content

Instantly share code, notes, and snippets.

@suchasplus
Created September 22, 2020 06:01
Show Gist options
  • Save suchasplus/92226a199f22209a50de5ff2ce630ce7 to your computer and use it in GitHub Desktop.
Save suchasplus/92226a199f22209a50de5ff2ce630ce7 to your computer and use it in GitHub Desktop.
git team config
#团队协作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