有多个git分支,当前修改的代码不同分支都需要做相同的操作,如何一次修改提交到不同的分支呢?比如:有branch1和branch2 ,在branch1 修改代码,如何同时提交到branch1和branch2
Submit on the current branch1, then cherry-pick to branch2..
git push origin 本地分支:远程分支 For example: git push origin dev:dev git push origin dev:master
git push origin 本地分支:远程分支
git push origin dev:dev
git push origin dev:master
Unless other branches are the same as the current branch, they need to be merged ~ There is no one-time decision
Submit on the current branch1, then cherry-pick to branch2..
git push origin 本地分支:远程分支
For example:
git push origin dev:dev
git push origin dev:master
Unless other branches are the same as the current branch, they need to be merged ~ There is no one-time decision