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

Question: grb (git rebase -i) to list other branches; not just commits #412

Open
5 of 10 tasks
ahmetb opened this issue Dec 3, 2024 · 1 comment
Open
5 of 10 tasks

Comments

@ahmetb
Copy link

ahmetb commented Dec 3, 2024

Problem description

When I'm on a branch, the grb=forgit::rebase command is showing mainly commits in my master/main branch.

But oftentimes I rebase commits between non-master branches (e.g. to send stacked PRs where each branch has a PR, and the branches build on top of each other).

Is there way to configure grb to work with "branches" (like gcb command) instead of a commit picker based on commits in master?

Check list

  • I have read through the README
  • I have the latest version of forgit
  • I have searched through the existing issues

Environment info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • Others:
  • Shell
    • bash
    • zsh
    • fish

Problem / Steps to reproduce

@carlfriedrich
Copy link
Collaborator

I am not sure I understand your issue correctly. forgit::rebase should display the commits of the branch you have currently checked out (if that's not the case, this might be a bug). Furthermore, forgit::rebase is meant for interactively rebasing the commits on a single branch, i.e. changing their order, squashing, amending or dropping.
We do not have any forgit command to rebase the current branch onto another branch. The closest thing to this might be forgit::cherry::pick::from::branch which shows a list of your branches and then a list of commits to cherry-pick into your current branch.

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