Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一直在从事我最近加入的项目的人在远程存储库上有两个 master 分支的克隆。现在,我必须将新的合并到旧的中。在我看来,这与跨分支合并不同。我认为挑选樱桃的变化可能是错误的方法。最好的方法是什么?
Git没有主从的概念,所以你不需要做任何特别的事情
git pull <remote-server> <remote-branch-name>
这将获取数据并进行合并。