Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index


On Thu, 2018-09-13 at 19:58 +0530, Rahul Gurung wrote:
Hey,


I always have a question in mind, what do you, professional
developers follow as your GitHub workflow? I am curious about knowing
two cases here, bugs and a new feature.

This project roughly follows what is sometimes referred to as "feature
branch workflow".  Also, be careful not to confuse git with GitHub when
discussing things like this.


For bugs:
I read from the documentation that we should make a new branch for
bug-killing but what after we pushed the code and it has been merged
to master, what should we do with the local branch ? is rebase merge
over master a good practice?

You can remove the local (as well as remote if one exists) branch after
it's been merged.  And yes, "rebase merge", or fast-forward merge is
required. I don't think we allow merge commits.

For new feature:
Should we make all the commits for the new feature over the same new
branch?

I'm not sure I entirely understand your question, but if you are
talking about making multiple commits that are all for the same
feature, then I'd say keep all on the same feature branch created for
that specific feature.

If possible, please tell the commands too, along with the answer.

The git commands required to create branches, push commits etc are
standard ones, and hopefully you can google about that?  The only thing
you need to be aware is that this project makes heavy use of gerrit for
handling patch submissions, so you may want to be familiar with gerrit
specific commands, as described in this wiki page:

https://wiki.documentfoundation.org/Development/gerrit

Kohei
-- 
Kohei Yoshida, LibreOffice Calc volunteer hacker

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.