首页 > 解决方案 > 从 Windows 将 git repo 克隆到共享的 Mac OS X(文件夹)

问题描述

从 Windows 将 git repo 克隆到共享的 Mac OS X(文件夹)

我无法通过 LAN 克隆共享文件夹中的 git 存储库,如果有人可以在这里提供帮助,请告诉我

Cloning into '\\<ip address>\Demo\Demo_1\Demo_Test'...
POST git-upload-pack (152 bytes)
POST git-upload-pack (190 bytes)
remote: Enumerating objects: 3, done.        
remote: Counting objects:  33% (1/3)        
remote: Counting objects:  66% (2/3)        
remote: Counting objects: 100% (3/3)        
remote: Counting objects: 100% (3/3), done.        
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0        
Receiving objects:  33% (1/3)
Receiving objects:  66% (2/3)
Receiving objects: 100% (3/3)
Receiving objects: 100% (3/3), done.
error: unable to write file <ip address>/Demo/Demo_1/Demo_Test/.git/objects/pack/5kjserkj343lkjl2k34nsdfjlks.pack: Permission denied
fatal: cannot store pack file
fatal: index-pack failed

已将共享文件夹的读写权限授予管理员、Mac OS 用户、所有人、员工

也为根文件夹尝试了 chmod 递归

标签: macosremote-accessgit-clonegit-pullgit-remote

解决方案


推荐阅读