您好,欢迎来到尔游网。
搜索
您的当前位置:首页git merge 与 git merge --no-commit 与 git merge --squash

git merge 与 git merge --no-commit 与 git merge --squash

来源:尔游网

假设现有分支develop、test。需要将test合并到develop分支。
首先切换到需要合并的分支,git checkout develop。

git merge

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

git merge --no-commit

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

git merge --squash

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

作者:车到山前必有路2021
链接:
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- axer.cn 版权所有 湘ICP备2023022495号-12

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务