我已經使用Google,並閱讀了很多文檔。 但不幸的是我不明白他們全部git rebase from master to remote branch。!
我的情況是。
git branch -r
origin/HEAD -> origin/master
origin/master
origin/team/myteam
git branch -a
master
team/myteam
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/team/myteam
,現在我想每一個補丁從主合併到遠程mybranch
。
我試圖
git的結帳隊/ myteam
git的重訂主
git status
On branch team/myteam
Your branch and 'origin/team/myteam' have diverged,
and have 238 and 18 diffrent commits each, respectively.
nothing to commit, working directory clean
似乎工作..但push
返回錯誤..
我用格里特。
git push origin HEAD:refs/for/team/mybranch
...
..
remote: Resolving
deltas: 100% (14481/14481) remote: Processing changes: refs: 1, done
To ssh://156.xxx.xxx.xxx/xxx ! [remote rejected] HEAD -> refs/for/team/myteam (change 228 closed)
error: failed to push some refs to 'ssh://156.xxx.xxx.xxx/xxx
_but推返回錯誤.._ - 什麼錯誤? – 1615903 2013-05-06 09:08:27
返回什麼錯誤? – 2013-05-06 09:08:38
謝謝你們,我編輯了我的錯誤信息。 – 2013-05-06 09:12:40