git忽略权限git全局配置
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
由于windows和linux上的文件权限不同,因此会导致线上线下提示文件有改动,这些都是不必要的,解决办法:
查看git全局配置:
git config --global -l #不加global查看本项目配置
git中可以加入忽略文件权限的配置,具体如下:
git config core.filemode false // 当前版本库
git config --global core.fileMode false // 所有版本库
这样就设置了忽略文件权限。查看下配置:
cat .git/config // 查看git的配置文件
忽略空格修改:
git config --global apply.whitespace nowarn //忽略文件中的空格修改
设置git commit编辑器为vim
git config --global core.editor vim
编辑配置文件
git config --global -e
查看配置文件
git config --global -l
忽略换行符号
git config --global core.whitespace cr-at-eol
忽略filemod:
git config --add core.filemode false
参考:https://blog.csdn.net/n289950578/article/details/24245223




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)