[英]Issues with sharing repository between linux and windows
I am sharing my repository between my linux and windows machine and pushed some permission changes on my linux machine. 我在Linux和Windows计算机之间共享我的存储库,并在Linux计算机上推送了一些权限更改。
Now my windows machine says I'm up-to-date when doing this: 现在,我的Windows机器上说我是最新的:
git fetch -all
git reset --hard origin/master
git pull
yet when I attempt to do the following: 当我尝试执行以下操作时:
git checkout dev
It suddenly tells me I have local changes, which just so happen to be the same files of which I modified the permissions on my linux machine. 它突然告诉我,我进行了本地更改,恰好与我在linux机器上修改权限的文件相同。
What is the right way of dealing with this? 解决这个问题的正确方法是什么? I made those permission changes so I don't have to manually use
chmod
every time I pull on my linux machine. 我做了这些权限更改,因此我不必每次拉动linux机器时都手动使用
chmod
。
尝试在Windows core.fileMode
设置为false
,然后Windows core.fileMode
将忽略可执行位。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.