2011-05-05 102 views
1

我有一个GIT存储库,其中有4个本地分支和众多远程分支,我想将整个存储库推送到裸存储库(包括远程分支)。我尝试使用git push origin,但远程分支没有被推送。如何推送所有远程分支

我的配置文件看起来像这样

[remote "origin"] 
etch = +refs/heads/*:refs/remotes/origin/* 
url = git://my-server/local/android/kernel/linux-android.git 
pushurl = [email protected]:/local/android/kernel/linux-android.git 
push = +refs/heads/*:refs/remotes/origin/* 
+0

s/etch/fetch/- – 2012-04-23 07:17:36

回答

0

远程分支远程。
你推他们或你从他们取他们。
但你不推远程分支机构。

参考+refs/heads/*:refs/remotes/origin/*for git push只会将所有本地分支推送到它们各自的远程分支具有相同的名称。

如果您有其他远程分支需要推送到最终的上游回购,您需要首先在本地签出这些分支,然后推送它们。