Hi I have a GitHub repository and I am using GitHub desktop. I have this repo for my minecraft spigot plugin, the spigot/minecraft version is 1.9.4 and I run a 1.9.4 spigot server to test the plugin. Now I want to create a branch where the plugin is with the minecraft/spigot 1.10 api so people who have a 1.10 server can use my plugin, but I want to develop onto the 1.9.4 branch. How to do this?
First send your current version on git like previous version. Then open git bash and run these commands:
$ cd /your/current/project/path/
$ git checkout v1.9.3
$ git branch develop
$ git checkout develop
Now make your change on project and then:
$ git add .
$ git commit -m "v1.9.4"
Your changes stored in develop branch. If you want to change master branch to v1.9.4:
$ git checkout master
$ git merge develop
And now you can update github like before. I hope this help you.