[英]Git merge upstream branch
我有一個git系統,其中有上游/起源/本地。
上游具有分支b1,b2原始具有分支b1,本地具有b1。
我想將b2的更改(即b1 +一些新的提交)更改為原始b1。
我嘗試了命令:
git fetch upstream b2
git checkout origin/b1
git merge upstream b2 (which shows a Fast-forward)
git push origin b1 (Which shows "Everything up-to-date")
但是,當我訪問origin / b1時,我看不到其他提交。
有人可以建議我想念什么嗎?
git fetch upstream # pull in latest changes from upstream, including b2
git push origin upstream/b2:b1 # push tracking branch upstream/b2 to origin/b1
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.