我有一个带有 upload/origin/local 的 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")
Run Code Online (Sandbox Code Playgroud)
但是,当我访问 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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12338 次 |
| 最近记录: |