git分支合并到主分支

将develop的分支的所有提压缩为一次提交再合并到主分支

  • git switch master
  • git merge --squash c5278a1c933534f898478c928ceddff61c38dfcb 指定分支特定commit进行压缩合并。
  • git commit -m " 本次提交信息"
  • git push origin master
  • git reset --hard 合并完成后,取消合并关联
posted @ 2025-02-08 21:58  Charles_hui  阅读(9)  评论(0)    收藏  举报