git合并分支 梦想程序员 2025-05-19 65 阅读1分钟 第一 进入新创建的分支 git checkout <新分支名字> 第二 旧分支 合并到 新分支(当前分支) git merge <旧分支名字> 第三 将合并后的新分支 推送代码到仓库中 git push origin <新分支的名字> merge 其实英文中的“合并” checkout 是 “转到其他分支” push 是 “推送代码到远程仓库中” origin 远程仓库的默认名称