" git remote:致命:空字符串不是有效路径"来自git push的错误

时间:2014-08-04 00:29:49

标签: git github uploading

我正在使用Git,并试图推动我的更改:

git push origin master

似乎开始上传,但后来我收到了这个错误:

remote : fatal: the empty string is not a valid path 

我不明白它在说些什么。我如何解决它?

1 个答案:

答案 0 :(得分:0)

尝试检查您的远程来源指的是什么:

git remote -v

如果它没有为您的远程仓库引用正确的路径/网址,您可以使用以下命令进行更改:

git remote set-url origin /url/to/remote/repo

您可以在git 1.8.0 (commit 3efe5d1)中看到错误消息,其中包含帖子discussing the issue there

如果它开始上传,那应该意味着git远程url足以联系git服务器,但该服务器上的路径或远程repo在某种程度上是不正确的。