2012-09-06 38 views
0

可能重複:
fatal: remote error: Could not find Repository octocat/myapp爲什麼我沒有推到git回購?

https://code.google.com/p/prjname/ is a empty repo right now 

我可以克隆它,但不能推本地回購它,爲什麼呢?

[[email protected] php]$ git clone https://code.google.com/p/prjname/ 
Cloning into 'prjname'... 
warning: You appear to have cloned an empty repository. 
[[email protected] php]$ rm prjname/ -rf 

的git的init

重新初始化在/home/mirror/tmp/php/.git/現有的Git倉庫

[[email protected] php]$ git remote -v 
[[email protected] php]$ git remote add origin https://code.google.com/p/prjname/ 
[[email protected] php]$ git push origin 
fatal: remote error: Repository not found 
[[email protected] php]$ git push -u origin 
fatal: remote error: Repository not found 
[[email protected] php]$ https://code.google.com/p/prjname/ 

[[email protected] php]$ ls 
conf.inc.php demo docs lang lib logs prjname sdk.class.php services util 

未能推動,但這種回購存在,儘管它是空的...

[[email protected] php]$ git push origin 
fatal: remote error: Repository not found 
+0

你見過嗎? http://stackoverflow.com/questions/10202015/code-google-com-git-fatal-remote-error-repository-not-found – kan

+0

@ kan這個問題有點類似於http://stackoverflow.com/questions/10202015/code-google-com-git-fatal-remote-error-repository-not-found,但我的是更多的細節,並且該問題仍然未解決... – thinke365

回答

0

試試這個:

cd prjname 
git push origin 
+0

當前目錄已經是本地回購目錄 – thinke365