Skip to content

wrong suggestion with git push --set-upstream  #740

@waldyrious

Description

@waldyrious

Thefuck is incorrectly adding the remote name at the end of the command suggestion:

$ git push myfork
fatal: The current branch test-branch has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream myfork test-branch

$ fuck
git push --set-upstream myfork test-branch myfork [enter/↑/↓/ctrl+c]
error: src refspec myfork does not match any.
error: failed to push some refs to '[email protected]:waldyrious/project-foo.git'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions