-
Notifications
You must be signed in to change notification settings - Fork 365
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
Feature Request: Add rebase option for branches #2739
Comments
Hi @mishraprafful, first of all thanks!
|
My 2 agoroth: Some people hate rebases, some love them. Git offers both, and the Git* tools also offer them (e.g. GitHub offers rebase-and-merge as a way to pull PRs). People hate rebases because they rewrite commit histories. People (myself included...) love rebases because they rewrite commit histories and allow you to fix things after the fact. |
Hi @lynnro314
Also, thanks for your inputs @arielshaqed I think I completed agree with you. |
With rebase we diff each commit with the base branch and effectively rebasing each commit separately, so we'll need to resolve conflicts (if there are any) with every commit. |
@lynnro314 I think adding strategy options with merge works for us. I understand that having rebase adds more complexities in terms of resolving conflicts. With the rebase, we would preserve all the commits that are added to the branch, and we wish to be able to revert to specific commits on the branches as well without having to keep the branches alive. So with rebase, we would be able to have all the effective versions of data on the main branch itself (i.e without losing individual commits on a branch, which we would if using merge to main) However, once the rebase feature is rolled out we would use that instead of merge. But for now, having strategy options with merge works 🎉 |
@mishraprafful Thanks for your answers! |
This issue is now marked as stale after 90 days of inactivity, and will be closed soon. To keep it, mark it with the "no stale" label. |
Merging branches and resolving merge conflicts can be very difficult, It would be awesome if we have a rebase option also available.
Maybe we can choose a default option at the repository level?
This somehow ties to integration with git, but I believe is a good feature on its own.
The text was updated successfully, but these errors were encountered: