简体   繁体   English

Git复制从一个分支更改为另一个

[英]Git copy changes from 1 branch to the other

I am currently working on a project with 2 different branches for 2 different versions, I have Version 1.8 and version 1.9, each one is different, and I would like to keep both as they are both still being used. 我目前正在一个项目中,该项目具有2个不同版本的2个不同分支,我有1.8版和1.9版,每个版本都不相同,我希望保留两者,因为它们都仍在使用。 my 1.8 is my master branch, is there any possible way to make the 1.9 branch copy all changes made to the 1.8 branch, I am currently using eclipse with egit, but I am happy to use proper git if the need be. 我的1.8是我的主分支,是否有任何可能的方法可以使1.9分支复制对1.8分支所做的所有更改,我目前正在使用带有egit的eclipse,但如果需要,我很乐意使用适当的git。

In Eclipse select your project with right click and then Team > Merge > Select the branch 1.8 and solve the conflicts that you might have. 在Eclipse中,右键单击您的项目,然后选择“团队”>“合并”>“选择分支1.8”并解决您可能遇到的冲突。

I'll suggest you to use SourceTree if you are new to git it is more easy to use. 如果您是git的新手,我建议您使用SourceTree,它更易于使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM