git commit to all branches
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: If I fixed a bug in a file in branch branch_a , which should be applied to all branches. Is there a way to apply the change to all branches without having to checkout the branches individually. git commit -m 'commit msg' # on branch a git checkout branch_b git cherry-pick branch_a git checkout branch_c git cherry-pick branch_a What i would like to have is a git commit --to-all-branches which tries to propagate the changes to all branches if possible. Edit To clarify a bit my situation, I write code to for computational problems. Often I end