Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

escape branch name with leading # in example of no upstream set #112

Copy link
Copy link
@robstoll

Description

@robstoll
Issue body actions

say you have a branch named #42-my-lovely-branch and would like to push it but forgot to set the upstream branch. You get the following error message:

fatal: The current branch #42-my-lovely-branch has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin #42-my-lovely-branch

This cannot be copy & paste as #42-my-lovely-branch should be escaped with a backslash as follows:

    git push --set-upstream origin \#42-my-lovely-branch
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.