joz*_*yqk 7 linux mount git permissions
我是双引导 Fedora/Windows 7,所以我在它们之间有一个共同的存储位置我做了一个小的胖分区,从/etc/fstab以下位置安装:
UUID=C37A-2B35 /transfer vfat users,umask=000 1 3
Run Code Online (Sandbox Code Playgroud)
我正在尝试将 linux 上的 git 存储库克隆到挂载,以便我可以在 Windows 上运行该项目:
> git clone ~/myproject/ /transfer/myproject
Cloning into '/transfer/myproject'...
error: chmod on /transfer/myproject/.git/config.lock failed: Operation not permitted
error: chmod on /transfer/myproject/.git/config.lock failed: Operation not permitted
error: chmod on /transfer/myproject/.git/config.lock failed: Operation not permitted
error: chmod on /transfer/myproject/.git/config.lock failed: Operation not permitted
error: chmod on /transfer/myproject/.git/config.lock failed: Operation not permitted
error: chmod on /transfer/myproject/.git/config.lock failed: Operation not permitted
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
我有完整的写权限,虽然 root 是所有者,这就是chmod失败的原因。我可以告诉git不要chmod因为它不需要吗?
解决方法是这样的,这真的很愚蠢,我不应该这样做:
git clone ~/myproject/ /tmp/myproject && mv /tmp/myproject /transfer/
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12416 次 |
| 最近记录: |