0

I am trying to learn git and , I need help in creating a new repo for my new game in unity.

I have developed a game on unity for which now I want to maintain a cross-platform specific code. Since there will be specific code and features for android & iOS so what I was thinking to do is to keep my WebPlayerVersion of unity as a master repo and creating different branches for android & iOS so that I can add features on the respective branches without merging it with master.

Now say If I change something in core gameplay on my master branch and I want it on my android & iOS branch then how do i tackle that

One thing I can do is everytime I change something on my master branch then I have to go and individually merge that code with some visual merge tool for respective branches but thinking at the bigger level its going to be difficult so is there any alternate way for this

Or any other good alternative solution with git for this particular scenario

2

1 Answer 1

0

If I change something in core gameplay on my master branch and I want it on my android & iOS branch then how do i tackle that

Merge branches with ordinary merge or just changeset(s) with cherry-pick

1
  • What? You want to merge a branch that makes the program for android into the iOS branch? What are you talking about here? Since the branches separate platforms, they must remain diverged.
    – Kaz
    Dec 18, 2014 at 22:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.