何时将git提交合并到master分支? [英] When to merge a git commit to master branch?
本文介绍了何时将git提交合并到master分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的项目中偶尔使用git作为本地存储库。
1)我所做的就是为每一个新的变化创建一个新的分支。执行我的工作
2)我从来没有将我的提交与天生的主分支合并
3)我只是向后移动&如果发现任何变化有问题,请通过分支机构发送错误
4)通过这种方式,我最终在我的存储库中拥有了大量的git分支
I use git occassionally in my projects as a local repository.
1) What I do is to create a new branch for every new change & carry out my work
2) I never merge my commits with the innitial master branch at all
3) I just move back & forth through the branches in-case any change is found faulty
4) By this way, I end up with a whole lot of git branches in my repository
I want to know is this approach the right way to work? Or should I merge every verified commit with the master branch?
推荐答案
这篇关于何时将git提交合并到master分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文