-
Notifications
You must be signed in to change notification settings - Fork 14
Development workflow
My first experience as a developer with open source, it happens with Mezuro project. One thing that I really like in this project, it was their workflow. Based on that, I will use the same workflow used by Mezuro. The text below, was not created by me, it was created in Mezuro project with a few changes.
Lets suppose that you're developing a new functionality called
decide_halt
(http://en.wikipedia.org/wiki/Halting_problem).
-
Make sure you have the latest code
git fetch -p
git checkout master
git pull origin master
-
Create branch for you to work
git checkout -b decide_halt # this creates a branch and changes to it
-
Do some work, add the produced code, commit it and push your branch and go home have some rest
git add halt.rb
git commit -m "Halfway to solve the problem!"
git push -u origin decide_halt
-
On the next day, before you continue, check if there is nothing new on
master
git fetch -p
git checkout master
git pull origin master
-
Supposing there is new things, get them:
git checkout decide_halt
git pull origin decide_halt
git rebase master
git push -f origin decide_halt
-
Repeat 4, 5 until you're done.
-
When you get finished open a pull request and we are going to thank you a lot for any contribution!
Feel free to contact us about any doubts.
The biggest hint is that we always expect for fast-forward merges. If git outputs any message for you telling that a recursive merge or any other kind of merge was made, probably something went wrong.