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

git pull --rebase for hub sync #3328

Open
j20120307 opened this issue Aug 28, 2023 · 0 comments
Open

git pull --rebase for hub sync #3328

j20120307 opened this issue Aug 28, 2023 · 0 comments
Labels

Comments

@j20120307
Copy link

The problem I'm trying to solve:
Reference:
#618
#1265

Here is the spec of the command from https://hub.github.com/hub-sync.1.html

If the local branch contains unpushed work, warn about it;

I'd like an extension of hub sync so it supports pull --rebase.

I have multiple local branch pointing to remote mainline so that I can work on non-conflicting features. Once I merged in a change from branch_a, I want to do a git pull --rebase on all my existing branches. What I have to do right now is

  1. git checkout branch_b
  2. git pull --rebase

and repeat for all my local branches. hub sync solves the problem if it's behind the remote head, however I'd like it to support git pull --rebase; if there is a conflict on the branch, do a git rebase --abort

How I imagine hub could expose this functionality:
hub sync --rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant