Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git推送到本地路径不再工作_Git - Fatal编程技术网

git推送到本地路径不再工作

git推送到本地路径不再工作,git,Git,我能够从原点拉,原点指向本地机器(/source/projectname/)中的某个本地路径,当我尝试推送时,我得到了错误消息 git: '/source/projectname/' is not a git command. See 'git --help'. fatal: Could not read from remote repository. Please make sure you have the correct access rights 并且存储库存在 /source/pr

我能够从原点拉,原点指向本地机器(/source/projectname/)中的某个本地路径,当我尝试推送时,我得到了错误消息

git: '/source/projectname/' is not a git command. See 'git --help'.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
并且存储库存在

/source/projectname/是一个纯回购协议。类似的设置也适用于windows。有什么想法吗


chmod 777也没有帮助。

您键入了什么命令
git-push
?git-push源主机。什么git-remote-v-return?@Vonc,显然是的,wierd,但正确。我可以用git 1.7.1推送谢谢。我能够安装1.9.1,现在它可以为我工作了。使用本地存储库是否很不寻常?为什么没有更多的人遇到这个问题?你键入什么命令
git-push
?git-push源主机。什么git-remote-v-return?@Vonc,显然是的,wierd,但正确。我可以用git 1.7.1推送谢谢。我能够安装1.9.1,现在它可以为我工作了。使用本地存储库是否很不寻常?为什么没有更多的人遇到这个问题?