Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 从原始存储库到fork的自动修补程序_Git_Version Control_Bitbucket - Fatal编程技术网

Git 从原始存储库到fork的自动修补程序

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

请帮帮我

我有一份原始来源的回购协议。(基础项目)和许多分叉

如何将错误修复从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
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