-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update git usage page with advice on pull requests etc #84
Comments
I often visited |
Thanks @MarkusPiotrowski - that's very useful feedback. If the current text is useful, then let's not cut that material. |
Without the GitUsage page, I am completely lost. |
OK, so the consensus is not to cut anything - but I think the later section "Commiting changes to main branch" would benefit from some review and updating (to cover rebasing and squashing commits). |
I found this really nice blog post (which I used as a guide to get started, contribute and keep my fork upto date). Would it be useful to either point to it or appropriate some content from it for our github contribution page? One thing though I am not that familiar or unable to understand is the approach @peterjc recommends up top, namely "... it can be helpful for the contributor to sometimes rebase and update their pull request ( Is this not recommended or preferrable? Just trying to understand the benefits and difference in what @peterjc asked for. Sorry if this is an elementary question - I am new to this. Thanks! |
What @peterjc is describing is not an alternative approach but an additional thing that will help to make your pull request easier to merge. |
Thanks @MarkusPiotrowski for explaining it and I now understand it well. Will make sure that future commits/pull requests are done in this manner. |
Thanks @MarkusPiotrowski - you seem to have a good understanding of this. I tried to outline rebasing a branch on #83 in reply to @mgudapak before reading this issue update. |
We could update http://biopython.org/wiki/GitUsage to be much shorter (refer to more external resources at GitHub or elsewhere rather than duplicate things) (update: perhaps not, see below), and concentrate on for Biopython specific topics like our development model (and link to http://biopython.org/wiki/Contributing or a new page specifically on coding styles, testing, etc).
For example, since we've tried to continue a single-branch model, most of our pull requests have been rebased and fast-forward merged (giving a linear history). To facilitate this, it can be helpful for the contributor to sometimes rebase and update their pull request (
git fetch origin
then ``git rebase origin/masterand
git push your_fork your_branch --force`), although often the person merging the PR will do this at the command line.The text was updated successfully, but these errors were encountered: