Skip to content

git checkout new branch suggestion improvement #632

Closed
@JemarJones

Description

Currently if i do the following:

> git checkout my-new-branch
 error: pathspec 'my-new-branch' did not match any file(s) known to git.
> fuck

I get the following suggestion:

> git branch my-new-branch && git checkout my-new-branch

This works fine, but what i more likely meant (and this does the same thing) is:

> git checkout -b my-new-branch

This is much more succinct and should probably be the suggestion in my opinion.

Activity

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

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