|
|
Log in / Subscribe / Register

pull --rebase

pull --rebase

Posted Mar 20, 2012 0:46 UTC (Tue) by dlang (guest, #313)
In reply to: pull --rebase by Anssi
Parent article: Git project seeks discussion on "push" change

rebasing means that you end up with a new version of code that you have never tested, and it's impossible for anyone looking at the resulting tree to figure out what you developed against.

The 'right' way to do things is to have a branch that you use to track the upstream version, one or more branches that you do development in, and then you create test branches to test merging your work with the upstream work (rather than merging directly into your development or upstream branches). After you test the merge, you delete the branch, you defiantly don't do any more development on it.

only when you are ready to push do you do a merge that will be visible to the outside world and push out.

the excess merge commits that you are bothered by are an indication of real problems, but rebasing instead isn't any better.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds