git 修改应用到不同分支上
2024-12-01 本文已影响0人
王滕辉
提交到两个分支上
- 在A分支上提交完成后查询log记录 commit id
git log
2.切换到B分支
git check
3.打开cmd窗口应用修改到B分支中
git cherry-pick f9e1e249e9bfec0d45354f7b5607aae0ba3fa6e0
4.推送到B分支上
git push origin
git log
2.切换到B分支
git check
3.打开cmd窗口应用修改到B分支中
git cherry-pick f9e1e249e9bfec0d45354f7b5607aae0ba3fa6e0
4.推送到B分支上
git push origin