将Git分支合并到master中的最佳(最安全)方法是什么?
问题: A new branch from master is created, we call it test . 从 master 创建了一个新分支,我们称之为 test 。 There are several developers who either commit to master or create other branches and later merge into master . 有几个开发人员要么致力于 master 要么创建其他分支,然后合并成 master 。 Let's say work on test is taking several days and you want to continuously keep test updated with commits inside master . 假设 test 工作需要花费几天的时间,并且您希望通过 master 内的提交来不断更新 test 。 I would do git pull origin master from test . 我会做 git pull origin master 从 test 。 Question 1: Is this the right approach? 问题1: 这是正确的方法吗? Other developers could have easily worked