我对git和ubuntu非常陌生。我今天安装了我的ubuntu服务器,现在我正尝试为我和一些开始项目的朋友设置一个git存储库。但是,无论我做什么我不断收到同样的错误:GIT致命:无法从Rempote存储库中读取
fatal: '/git.git' does not appear to be a git repository
fatal: could not read from rempote repository
please make sure you have the correct access rights and the repository exists.
我几乎可以100%肯定的路径是正确的,我尝试了我百万个不同的pathcombinations并没有什么作品。在推送之前,我是否需要在Ubuntu上设置任何特殊许可?或者我错过了其他任何内容?
这是我要做的事
在Ubuntu服务器在/ var/WWW:通过混帐猛砸
sudo mkdir git.git
cd git.git/
git --bare init
在Windows上,从桌面:
mkdir git.git
cd git.git/
git init
然后添加一些文本文件。
git . add
git commit -m "Initial Upload"
git remote add origin [email protected]'server-ip':/git.git
git push origin master
得到要求输入密码,然后发生错误。
当你从本地git仓库推送时,你不一定要指定远程服务器(我怀疑这是你在做什么)。你的命令行是什么? – xbug 2014-11-20 23:17:11
不确定你的意思与本地git回购?我已经在一台计算机上安装了Ubuntu服务器,同时尝试从另一台计算机推送到Ubuntu。我现在使用的是git bash – Cevil 2014-11-20 23:24:18
如果你编辑了你的文章并添加了所有最终导致错误的命令,这将有所帮助。 – xbug 2014-11-20 23:33:01