2012-07-31 79 views

回答

1

push命令的語法:

git push [ <options> ] <repository> [ <refspec> ] 

在最簡單的情況下,<options>是空的,<repository>通常origin,並<refspec>是您當前的名字分支:

git push origin branch_name 

這假設您已創建一個名爲origin的遠程,eith通過克隆遠程存儲庫或使用git remote add ...命令。如果你還沒有遠程配置,可以替代像這樣在命令行上的網址:

git push https://username:[email protected]/p/project-name/ branch_name 
2

有效的名稱通常情況下,你不需要指定推送目標的完整URL,因爲遠程origin已指向該目標(對於列表,請鍵入git remote -v)。因此,也許你需要的是:

git push origin branch_name 
0

推動當地的分行,新的遠程服務器上:

混帳推起源local_branch_name:remote_branch_name_that_will_be_created

相關問題