-
Notifications
You must be signed in to change notification settings - Fork 417
Development branches / Better code versioning #47
Comments
A very interesting read, I agree currently the management of the Repository goes to zero:( |
I just created a develop branch, which should be used for developing and branching from for now on. For the purpose of the UnityFunc #37 I also created the first feature branch:) |
I've just one question now. I enabled GitFlow in source tree and I have all the new branches in SourceTree pushed to the origin. But how can I work on seperate branches? I just have my original local copy on my drive now. |
You press "Git Flow" and select one of the options. When you want to pause development on that branch and do other stuff, you select one of the branches under Remote. To finish a branch, you select it, press "Git Flow" and then "Finish X". |
Thanks, selecting it from the remote was what I was looking for:) |
According to some documents, a good workflow consist in creating a new branch for each feature, containing a set of short commits, and then create a pull request for the other contributors to have a look. While the pull request is active, the contributor can push new commits in its branch, and they will automatically be updated into the Github correponding page. People can give some feedback on the code while it's wrote. Once the code seems ok, we can merge the code into the master (or development) branch. I think for the moment we could use that workflow and merge directly into the master branch. |
We actually do that right now, in two cases. |
Nice, that's perfect ! Is that ok for everybody ? :) |
Well, if it's a hotfix or something really small, it's enough to create a pull request and let the others review it first (for me too of course;) ), I think so atleast. |
Right now the master (and only) branch contains features that are incomplete, might change and/or contain lots of bugs that might break some stuff (I didn't test it, just a supposition).
It's difficult for a user to see the giant "Major WIP Update" commit and decide if he can update its current version of the code or not.
There should be finer control of what code is in development and what is ready to be released (i.e. using additional branches/tags and correct version control numbering).
Possible references:
https://www.atlassian.com/git/tutorials/comparing-workflows/ (Git Flow works out-of-the-box with SourceTree)
The text was updated successfully, but these errors were encountered: