Merge vs. Rebase Pull requests #103
Replies: 1 comment 1 reply
-
I find merge much easier to use, and rebase cause problems if not used correctly: Rebase should not be used on any public branch (The Golden rule of rebasing). Than means you can't use rebase on a branch where two people work, or for a pull request in progress. If rebase is to be used by a project (with more than one person), the project needs to set up a set of rules/procedures to follow. I regularly use git history, and often want access to the incremental commits and bug fixes. When using git blame on a file you can often see why and how the different lines are added. When trying to do the same with Slicer code, I just found large "monster commits" that don't give any explanation on why the code is put together this way. My conclusion is therefore that I don't really see the benefit of a "clean" history. |
Beta Was this translation helpful? Give feedback.
-
The default method for integrating pull requests in github is merge. I think we should use rebase instead because it leaves a cleaner git history without "Merge" intermediary commits like this:
Instead, we would get something like this:
Slicer uses rebase for a cleaner git history. What do you think @ALive-research/alive-software?
Beta Was this translation helpful? Give feedback.
All reactions