2014-05-19 34 views
2

我只是克隆的存储库,我能够做一个git commit -m,但我不能做一个git push,因为我收到一个错误:推目标错误

No configured push destination. Either specify the URL from the command-line or configure a remote repository using

git remote add <name> <url>

and then push using the remote name

git push <name>

我是一个该存储库的管理员,但它最初是别人的回购。我该如何解决这个问题?

回答

1

尝试做:

git push origin master 
+0

我得到这个︰致命︰'起源'似乎不是一个混帐存储库 致命︰无法读取远程存储库。 请确保您拥有正确的访问权限 并存在存储库。 – shreyashirday

+0

@ user3140562你是如何克隆这个回购的? 'git remote -v'的输出是什么? – kaman

+0

@ user3140562 - 非常奇怪。这些错误不应该发生在克隆的repo上。 – manojlds

0

很抱歉,这是迟,但问题是,我是在做目录git的电话,其中回购被存储,而不是回购本身。例如,如果回购被称为回购,它存储在文件夹中,我在文件夹中调用git push,而不是回购。