尝试在同一域中创建Git远程存储库,但失败

尝试在同一域中创建Git远程存储库,但失败,git,repository,push,samba,Git,Repository,Push,Samba,我在一个域中有两台计算机,一台是Linux,另一台是windows。我在Linux上构建了一个远程repo,URL是10.10.10.1/test,我使用git init-bare来构建这个repo,并且没有错误报告 在windows网站上,我有一个本地回购协议,我已经提交了文件。然后,我给出以下CMD: $ git remote add origin 10.10.10.1/test 我检查了一下: $ git remote -v origin 10.10.10.1/test (fetch)

我在一个域中有两台计算机,一台是Linux,另一台是windows。我在Linux上构建了一个远程repo,URL是10.10.10.1/test,我使用git init-bare来构建这个repo,并且没有错误报告

在windows网站上,我有一个本地回购协议,我已经提交了文件。然后,我给出以下CMD:

$ git remote add origin 10.10.10.1/test
我检查了一下:

$ git remote -v
origin 10.10.10.1/test (fetch)
origin 10.10.10.1/test (push)
然后我试着把我的主人推到原点

$ git push origin master
我得到

我用同样的过程在本地windows上试过,它也能工作,我也试过Github,它也能工作,所以我认为问题是我给出了错误的URL。 我可以从本地ping 10.10.10.1,也可以找到文件夹/测试,我尝试了以下cmds,但它们也不起作用

git remote add origin 10.10.10.1/test
git remote add origin \\10.10.10.1\test
git remote add origin \\\\10.10.10.1\\test
git remote add origin smb://10.10.10.1/test (git doesn't reconize the keyword 'smb')
在这种情况下,我应该给出什么URL,或者在Linux端的Samba中是否有任何需要修改的设置?谢谢你花这么多时间来阅读


Tim

尝试将windows共享装载到本地目录Hi Ted,感谢您的帮助!我稍后会尝试并分享结果,再次感谢!我使用SSH解决了这个问题。
git remote add origin 10.10.10.1/test
git remote add origin \\10.10.10.1\test
git remote add origin \\\\10.10.10.1\\test
git remote add origin smb://10.10.10.1/test (git doesn't reconize the keyword 'smb')