Linux Ubuntu连接Windows Server 2016 Git远程仓库失败求助
Ubuntu下通过OpenSSH访问Windows Server Git裸仓库失败,Windows10可正常操作
我在Ubuntu系统上尝试连接Windows Server 2016上的Git裸仓库时碰了壁,执行以下命令:
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.
我已经搜过类似问题,也试了所有能找到的解决方案,但都没解决问题。
我的环境细节:
- Windows Server 2016运行OpenSSH服务,上面有一个路径为
e:\myRepo的裸仓库,已经给所有人设置了完全权限 - Windows10电脑上通过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
有没有大佬能帮忙解决Ubuntu上的这个问题?感谢!
内容的提问来源于stack exchange,提问作者Mah005
相关产品推荐
相关产品推荐

