把项目部署到服务器后没有做改动,用 git pull
拉取变更的代码提示本地文件已修改。随便 git diff
则显示
git diff xxx
old mode 100644
new mode 100755
明显可以看到是文件权限改变了引起的,解决办法也很简单,只需要设置 git 忽略本地文件的权限价差
- 方法1,当前项目设置
git config core.filemode false
- 方法2,git 全局设置
git config --global core.filemode false
本文由 HongXunPan 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为:
2020-02-29 16:12:58
Everything is very open with a very clear clarification of the issues. It was truly informative. Your website is extremely helpful. Many thanks for sharing! Erozon Max Omdömen
where to get tadalafil https://cialisvet.com/
https://cialisbusd.com/ buy tadalis
https://cialistrxy.com/ cialis cost
I every time used to study article in news papers but now as I am a user of net therefore from now I am using net for content, thanks to web.
Directpharmacyusa