[Kmymoney-devel] Development workflow proposal

Alvaro Soliverez asoliverez at kde.org
Sat Nov 12 00:27:25 UTC 2011


Hello all,
if you are not an active KMM developer, you can stop reading here.

-----------------------------------------------------------
With git there are several possible workflows, all of them correct, and
suitable to different situations.
I've had working experience with git in a context similar to ours (eg. a
project with 5-6 developers, several branches, the possibility that we
might modify the same files without knowing, etc.)
In that project, what each of us would do was:
- Pull --rebase the latest from the server for whatever branch we had to
work in (master or stable)
- Branch off to a private branch
- Write the code, test, etc.
- Commit
- Switch to the original branch
- Pull --rebase the latest again
- Switch to work branch
- Rebase from original branch
- Fix conflicts if any, test again, commit if needed
- Switch to original branch
- Merge the work branch
- Push to server

You can maintain several different branches. Keep in mind that branches are
extremely cheap. It's totally different from SVN.

What rebasing means, is that it will get the commits from another branch,
and it will try apply your commits on top of that. If there is a conflict,
you have the opportunity to fix it while rebasing.

To summarize, this workflow means we always work on the code in private
branches, then rebase and merge to master or stable branches.

In cases where a commit has to be applied to several branches, it can be
merged to one branch, and cherry-picked from the others.

It is important to agree on a workflow that suits us, and also doesn't
clutter the log, something that can happen very quickly on git.

Input is welcome, but please keep in mind that this only affects people
that will be actually pushing to the repository.

Regards,
Alvaro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20111111/21bbea58/attachment.html>


More information about the KMyMoney-devel mailing list