摘要: 使用 --squash 合并为一个提交(推荐) 这是最常用的做法,如果你只是想把另一个分支的内容并入当前分支,并最终只生成一个提交。 git checkout feature1 git merge --squash feature2 git commit -m "合并 feature2 的功能" 说 阅读全文
posted @ 2025-05-19 09:38 东岸 阅读(21) 评论(0) 推荐(0)