在Git中将网络共享路径配置为远程存储库时无法拉或推

时间:2014-04-27 10:46:42

标签: git repository

问题 - 当我尝试将网络文件共享配置为远程存储库时,我无法推送和从远程和本地存储库中提取更改。我只是设法将存储库从远程克隆到本地。每当我推或拉时,它都会显示以下错误消息:

fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.

我的远程存储库地址如下所示 - \\192.xxx.x.50\GitRemote\

您能帮忙解决这个问题吗?如果我能提供更多信息,请告诉我。

注意:当我在同一台机器(本地文件系统)中拥有远程存储库时,它可以正常工作。

1 个答案:

答案 0 :(得分:0)

尝试使用共享文件夹url的另一种语法

git remote set-url origin //192.xxx.x.50/GitRemote
or
git remote set-url origin \\192.xxx.x.50\GitRemote

(见" Git pull from another users working directory")