【发布时间】:2018-10-25 12:40:05
【问题描述】:
在 Linux Ubuntu 上操作时遇到问题
git init
git remote add origin username@domain@server_IP:e:/myRepo
git fetch origin
输入密码后,我有这样的信息:
fatal: ''e:/myRepo'' 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.
我搜索并发现有“相同问题”的人,但我发布此问题的原因是我浏览了建议的解决方案,但没有一个对我有用。
这是我的情况:
-运行 OpenSSH 的 Windows Server 2016 上的裸存储库。 (e:\myRepo 拥有所有人的完全权利)
-能够在 Windows10 PC 上通过使用 powershell 运行额外的 git 命令来进行操作
git init
git remote add origin username@domain@server_IP:e:/myRepo
git config --local remote.origin.uploadpack "powershell git-upload-pack"
git config --local remote.origin.receivepack "powershell git-receive-pack"
git fetch origin
谢谢。
【问题讨论】:
-
您是否拥有正确的访问权限?如果您没有克隆 repo 的权限,实际上任何人都无能为力
-
是的@Liam 用于测试目的,我授予每个人完全控制权。
-
该错误消息似乎暗示了其他情况。您的回购托管在什么平台上?您是如何授予“所有人的完全控制权”的?
-
等等,这是windows还是Linux?
-
裸repo在windows上,本地在linux上
标签: git git-remote git-config