Skip to content
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 branch with Rebase #485

Open
alcpereira opened this issue Nov 12, 2024 · 1 comment
Open

Update branch with Rebase #485

alcpereira opened this issue Nov 12, 2024 · 1 comment

Comments

@alcpereira
Copy link
Contributor

Is your feature request related to a problem? Please describe.
At work, we use rebase on 80% of the repos, and I want to avoid as much as possible having those merge commits due to the Update feature.

Describe the solution you'd like
The possibility to use "Update with Rebase" that is already available in the GH CLI (here).

Describe alternatives you've considered

I started working on an implementation but I would like to have some feedback regarding what would be better:

  • Another keybinding: u does update with merge commit, U does update with rebase
  • A config (global? repo scoped?) to override the default behaviour of u
  • A prompt asking if you want to use merge or rebase (similar to lazygit when you do rebase)
@dlvhdr
Copy link
Owner

dlvhdr commented Nov 12, 2024

I guess another option is to contribute to gh to add interactivity similar to how the approve and merge commands work.
But I'm also ok with adding a global config option to set a default.

@alcpereira alcpereira changed the title Update with Rebase Update branch with Rebase Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants