ruby on rails - Apply branches on multiple repositories -
I have a rail app and I have cloned it with Rail App B. Both versions have a different Gate Is the store. Now I am developing new features in different feature branches which then apply to app A or AppB.
But I also have facilities or bug branches which should be implemented on both apps. Suppose I have created a facility branch on App A and I want to apply this facility branch in App B, how do I get it? Both GIT repo are on my local machine and are also on Github.
You can add a new remote to B.
Add git remote A & lt; Ur and A & gt;
You can now run the following on the B
local and drag it into the change with A
:
< Code> Git fetch A feature git checkout -b feature A / Feature
You have to remember that you want to make any changes that you want to share on a different branch. Now suppose you have found some undesirable changes in this branch that you do not want to merge. You can always choose personal command at the top of your current branch (master?)
git cum master git cherry-pick and lieutenant; Hash of commits & gt;
You can read more about this here:
Comments
Post a Comment