Repository navigation
Allow force-pushing from menu every time a branch has diverged - #15521
Merged
Merged
Conversation
tidy-dev
reviewed
Oct 25, 2022
Co-authored-by: tidy-dev <[email protected]>
tidy-dev
approved these changes
Oct 25, 2022
Member
|
Something that makes me a little nervous about this is that the shortcut seems to be the same when doing a force push |
Member
Author
|
That's a good point. It was already the shortcut of force-push when it was available before (after a rebase/squash/reorder/cherry-pick). If users are concerned about it, I guess they always have the prompt to confirm the action? 🤔 |
|
Contribution |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #15211
Description
This PR supersedes #15494
Changes the logic of the
Force pushitem under theRepositorymenu, to always show up when the current branch has diverged from its upstream. The rest of places where we usually suggest to force-push will keep the existing behavior: they will only showForce pushwhen GitHub Desktop knows the branch diverged after the user performed an operation that is usually followed by a force-push (like a rebase or amending an already pushed commit).Screenshots
Screen.Recording.2022-10-20.at.18.20.59.mov
Release notes
Notes: [Added] Enable menu option to Force-push branches that have diverged