1. 保证分支和主干都是最新代码
git pull
2. 切换到主干分支
git checkout main
3. 合并分支
git merge [branch name]
4. 将改动推送到远程仓库
git push origin main
Reference:
https://www.cnblogs.com/l199616j/p/15637199.html#_label0
1. 保证分支和主干都是最新代码
git pull
2. 切换到主干分支
git checkout main
3. 合并分支
git merge [branch name]
4. 将改动推送到远程仓库
git push origin main
Reference:
https://www.cnblogs.com/l199616j/p/15637199.html#_label0
本文标题:【GIT】合并分支
本文链接:https://www.haomeiwen.com/subject/azxibrtx.html
网友评论