Creating a new branch.

For code related discussions and questions
Post Reply
jh0242
Rookie
Rookie
Posts: 18
Joined: 18 Apr 2013, 15:41

Creating a new branch.

Post by jh0242 » 05 Dec 2013, 23:34

Hello everyone! I have been working with the Warzone 2100 source code via Github for a few months now, by myself, and I was wondering if I am able to create a new branch for the modifications that I have made without affecting the Master branch? I have implemented a difficulty adjustment option in the game options screen that when turned on modifies the AI damage based on the player performance in order to reduce or increase the difficulty. This does not replace any of the original game difficulties, it is just an option that will increase damage of AI units and nothing else at this time. I plan on further development and testing, but I feel as though using a repository would be a good idea. Any information is greatly appreciated, thank you.

Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3750
Joined: 03 Aug 2006, 19:39

Re: Creating a new branch.

Post by Per » 05 Dec 2013, 23:37

https://github.com/Warzone2100/warzone2100/

Click 'fork'. Now you have your own repository, and you can create as many branches as you want. Once you have code you want to merge back into mainline, you either create a merge request or a bug ticket with a patch. Happy coding!

jh0242
Rookie
Rookie
Posts: 18
Joined: 18 Apr 2013, 15:41

Re: Creating a new branch.

Post by jh0242 » 05 Dec 2013, 23:48

Thank you very much for the quick and informative reply! Happy coding to you as well!

Post Reply