简体   繁体   中英

Maintaining CrossPlatform Source code with git

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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