2011-02-14 105 views
0

當我嘗試做一些這樣的:
混帳推的git @ github上的客戶端:antonyr /彈簧Hibernate.git
我得到的東西如下Github上多帳戶問題

No refs in common and none specified; doing nothing. 
Perhaps you should specify a branch such as 'master'. 
error: failed to push some refs to '[email protected]:antonyr/Spring-Hibernate.git' 

順便說一句我爲github.com使用SSH設置了多個帳戶。

請幫忙。

+0

「也許你應該指定一個分支,比如'master'。」 – Cascabel 2011-02-14 05:55:53

回答

2

您必須指定要推送的分支。爲推動master

$ git push [email protected]:antonyr/Spring-Hibernate.git master 
+0

我仍然收到相同的錯誤。當前登錄的SSH帳戶是用戶abc。現在我想在github.com上使用另一個名爲antonyr的帳戶 – Antony 2011-02-14 06:37:15

0

推動與git $混帳推起源主

它應該工作之前,請使用以下命令。