GIT 和 VMWare/卷
我将 MacBook 和 Ubuntu Server 作为 VMWare 融合虚拟机的一部分。当我在本地磁盘(Mac)上使用 GIT 时,一切工作正常,但当我尝试在卷上使用 git 时,我遇到了问题。
例如 /Volumes/vm1/webfolder 是我的本地 .git 存储库。如果我像这样创建克隆
git@myserver:byrepo.git
,那么我会检查更改,例如
git pull --rebase origin master
所有文件都不同并且需要更新。问题是什么?仅供参考...与我在 Windows 上使用共享 VMWare 文件夹获得的效果相同。是否存在权限问题或用户所有者问题?
修复它吗? 谢谢!
I have MacBook and Ubuntu Server on it as part of VMWare fusion virtual machine. When I use GIT on my local disk (Mac) everything is working perfectly but when I try to use git on volumes I have problems.
For example /Volumes/vm1/webfolder is my local .git repository. If I create clone like
git@myserver:byrepo.git
then I check for changes like
git pull --rebase origin master
all files differs and need update. What is the problem? For info... the same effect I get using shared VMWare folders on Windows. Is there permission problem or user owner problem?
Fix for it?
Thx!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我很难准确说出您的问题是什么,但如果您说 git-pull 拒绝采取行动,并声明所有内容都已修改,那么您很可能拥有他们的权限改变了。检查 git diff 的输出来确认这一点,如果是这种情况并且可以安全地忽略权限更改,请尝试将 core.filemode 设置为 false:
I am having a bit of trouble telling exactly what your problem is, but if you're saying that
git-pull
refuses to act, stating that everything has been modified, it is quite possible you their permissions have changed. Check the output ofgit diff
to confirm this, and if it's the case and it's safe to ignore permission changes, try setting core.filemode to false: