2012-12-14 94 views
1

大家通過Assembla推文件混帳回購協議。無法使用鈦工作室

我創建了一個Assembla git倉庫,然後將其導入到鈦工作室,然後我將文件複製到文件夾,但它並沒有讓我來推它。它說:

No refs in common and none specified; doing nothing. 
Perhaps you should specify a branch such as 'master'. 
fatal: The remote end hung up unexpectedly 
error: failed to push some refs to '[email protected]:#######.git' 

任何人都知道它有什麼問題嗎?

回答

1

先推可能需要git push origin master(如explained here)。

在一個IDE(如Titanium Studio),這可能是類似這樣的bug report

這裏的問題是,我們的命令只是做一個「git push」,這推高了有遙控器和跟蹤設立分支機構。
如果您需要將當前分支明確地推送到遠程命名,使用「Team > Push to Remote」混帳命令。
所以,如果你在「master」,它會提示你遠程,然後做「git push master <remote>」。

+0

它確實需要這一點,因爲你的本地分支有沒有遙控其跟蹤 – Michael

+0

@邁克爾本人同意,看完之後http://stackoverflow.com/questions/7506832/git-push-origin-masterrefs-heads-master-什麼 - 做 - 這-DO/7506906#7506906和默認推送策略將作出更加明顯:http://stackoverflow.com/questions/4586687/what-is-the-result-of-git-push-origin/ 9749477#9749477 – VonC