Closed Quillion closed 10 years ago
I can take a look at this, but If I'm going to do so, going forward, I want ALL additions to code done through branches and pull requests. Including you, Edgar. I know it's your codebase but if we're gonna get in this together, there needs to be good management and code peer review.
My proposed steps are:
Make a branch in the form of either
bug-
For example: feature-jumping bug-prevent_negative_gravity
Furthermore, when you push code, wait for someone to review it, and comment on it; and then merge it into master.
I agree. Now the problem is that I am a noob when it comes to branches or anything of the kind. I have never done any branching. At both Evertz and my current job I am the sole master, so I need to learn this branch thing, and I would be very open to any tutorials or anything. Also negative gravity and jumping is a feature and works pretty well :-) I tested it. So basically then how this works is I branch the code, then I work on whatever it is, then I wait for review and then merge into master? Sounds pretty cool :-)
Ok, I'll make this a guide for anyone else that's going to participate as well. Note, I'm assuming that you're on some form of Unix based machine. If you're not, you should be.
git clone git@github.com:Quillion/GameEngine.git
git branch
git branch <branch_name>
git branch -d <branch_name>
(Note, if it gives you an error and you want to force the delete, do -D)git checkout <branch_name>
git checkout -b <branch_name>
git pull origin <branch_name>
git commit -am "<some meaningful commit message>
To commit your code locally to a git commit. This is like a chapter of a book; generally speaking, each distinct task should be a commit.git pull origin master
git merge master
git push origin <branch_name>
http://git-scm.com/book Chapters 3-5
http://en.m.wikipedia.org/wiki/Integrator_workflow Master is blessed, don't merge breaking changes into it. Some sort of automated regression tests would help here.
We need to clean up the files that get checked to git. Most likely some of the files are completely unnecessary (like workspace.xml and others). Also packages have to be reshuffled in a nicer way. In general project needs a cleanup. And I lack the insight to do it.