Skip to content

Deal with a force-pushed PR branch #802

Open

Description

@roblourens
  • A PR branch is force-pushed
  • PR extension notifies me that the PR has updates
  • I click "pull"
  • Now I have to merge changes between the two versions of the branch

Currently I have to go to the command line myself to reset the branch to the upstream version which is annoying, because this is a common PR workflow. I think the typical way to do this is to fetch, then git reset --hard upstream/branch.

There should somehow be an option to reset my branch to the upstream branch. If the local commits are my own commits, we wouldn't want to lose those, so maybe there should be a separate button, or the extension can notify me after I click "pull" and ask me whether to merge or reset. Either way there should be some SCARY TEXT so I know that commits will be lost...

Activity

  1. added
    feature-request
    on May 1, 2019
  2. jcaamano commented on Jan 9, 2025

    @jcaamano

    Sorry to revive this but has it been addressed? The normal workflow assuming you are reviewing (instead of collaborating, for which a force push would not be common) calls for a git pull --rebase so it would be nice to have a Pull and Rebase button on the toast. But I am not sure I am doing what the extension expects me to do.

  3. alexr00 commented on Jan 16, 2025

    @alexr00
    Member

    This has not been addressed yet, but really it's more of a bug than a feature request as this puts you in a bad state that you can only resolve via the command line. I'll try to address in February.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions