Git 从原始存储库到fork的自动修补程序
请帮帮我 我有一份原始来源的回购协议。(基础项目)和许多分叉 如何将错误修复从fork自动移动到base项目 我用比特桶Git 从原始存储库到fork的自动修补程序,git,version-control,bitbucket,Git,Version Control,Bitbucket,请帮帮我 我有一份原始来源的回购协议。(基础项目)和许多分叉 如何将错误修复从fork自动移动到base项目 我用比特桶 谢谢 您需要签出所需的分支,然后将其合并到本地分支中 # checkout the desired branch to which you want to merge the code into git checkout <main branch> # update the local repo with all the code from the remote
谢谢 您需要签出所需的分支,然后将其合并到本地分支中
# checkout the desired branch to which you want to merge the code into
git checkout <main branch>
# update the local repo with all the code from the remote
git fetch --all --prune
# merge side branch to the main branch
git pull origin <main branch>
# Merge the side branch
git merge <side branch>
git checkout master
git fetch --all --prune
git pull origin master
git merge side_branch