-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 push upstream branch does not exist, wrong command recommended first #1207
Comments
This is the culprit: 39753a0 Seems like as long as you've run
Edit: PR #1208 fixes this problem. Waiting for it to be merged! |
Same issue here after upgrading from 3.30 to 3.31 (mac os 11.4, installed using homebrew). |
👀️ |
As a workaround, until the fix is merged and package repos updated which seems will take a while, do this, UPDATED:
OLD: I've used Homebrew on Mac to install thefuck, so for me this works:
|
That was a very unfortunate choice for a priority. Thanks @matthewarmand for filing the issue and @hamidnazari for identifying the problem and fixing it! |
I upgraded a homebrew cask yesterday and suddenly thefuck stopped recommending the push --set-upstream branch too. Fix posted by @hamidnazari worked instantly, and good to hear that the proper fix is already coming soon. Thanks for the great work on this project guys! |
Commenting just to follow for the fix. Using the workaround too. Thanks! |
Friendly tip, in the future you could consider following issues in a less noisy way by subscribing to issue notifications: Additionally, since this issue is closed and the associated PR merged I'm not sure you'll actually get a notification when the fix is released. You could subscribe to notifications on related issue #1219, which maintainers said they'll leave open to track the release. Another (potentially more useful?) method is to use Github's "Watch" feature on the repo to subscribe just to Releases until the next one comes out. |
is there a plan to release this fix? this was one of the most useful usages of this command, and I'm not able to use it since a month or so. 😢 |
Yes, there is plan! Please bear with us while we squeeze time on our ends 😊😁 We're getting there! For now, there is one issue left to fix and one pull request left to review. The issue is being taken care of and PR reviews are always more than welcome 🙂 |
Any update on releasing this? Workaround works, just curious |
Looks like it was just released /~https://github.com/nvbn/thefuck/releases/tag/3.32 which includes the fix for this |
Recently I noticed a change in a
thefuck
behavior that I use very regularly which I wanted to call out as what I think is an unwanted change. This was introduced very recently, I believe with the 3.31 release. When usinggit push
on a git repository where the branch does not exist in the upstream repository,git
responds with a specific command one should run to create the upstream branch. Prior to version 3.31,thefuck
seemed to recognize this and made the first suggested Corrected Command was the onegit
recommended. As of version 3.31,thefuck
instead puts a genericgit push --no-verify
command first, and the onegit
recommended is instead the second result.In this case where
git
recommends a specific command,git push --no-verify
doesn't actually help or do what the user wants; you need thegit push --set-upstream origin branch-name
command whichthefuck
now arrives at second. Because of the inconvenience for this particular case, combined with the fact that the first option recommended bythefuck
isn't functionally valid, the prior behavior is more correct for this particular case.Below is all the debug information requested in the issue template:
The output of
thefuck --version
(something likeThe Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release
):Your system (Debian 7, ArchLinux, Windows, etc.):
How to reproduce the bug:
The output of The Fuck with
THEFUCK_DEBUG=true
exported (typically executeexport THEFUCK_DEBUG=true
in your shell before The Fuck):https://pastebin.com/qpyEcreC
If the bug only appears with a specific application, the output of that application and its version:
Anything else you think is relevant:
The text was updated successfully, but these errors were encountered: