美文网首页
git merge\git merge --no-commit\

git merge\git merge --no-commit\

作者: 车到山前必有路2021 | 来源:发表于2021-07-02 09:24 被阅读0次

假设现有分支develop、test。需要将test合并到develop分支。

首先git checkout develop。

git merge test

test分支会合并到develop,会有test分支提交信息,同时最后一条提交会是Merge branch 'test' into develop。

git merge test --no-commit

test分支会合并到develop,会有test分支提交信息,最后一条提交与test分支一致。

git  merge test --squash

test分支会合并到develop,没有test分支提交信息,需要自行git commit。


相关文章

网友评论

      本文标题:git merge\git merge --no-commit\

      本文链接:https://www.haomeiwen.com/subject/dtdeultx.html