git将代码同时提交到另一个分支

1 . 先在当前分支提交代码
2. git log 查看刚才提交的 commit id
3. 切换分支
4. git cherry-pick

猜你喜欢

转载自blog.csdn.net/qq_26889291/article/details/112241730