Accidentally created branch with name origin/master

In a fit of unbelievable stupidity I accidentally ran

git checkout -b origin/master

  • No git trees, why?
  • How to get back a clean git repository?
  • Why is “git branch” silent in new repositories?
  • I need help deleting a local branch with Git
  • How to tell git to (1) ignore changes and (2) abandon managing commited file
  • Git tag at the end of build on Visual Studio Online (Build vNext, hosted pool)
  • And now have a branch named origin/master which ruins everything. Is it safe to just run

    git -D origin/master?

    I tried looking in the config for the branch but its not defined there. Yet when I run git branch I see it.

    ):

  • Removing a folder from a git repo's history doesn't make repo smaller
  • Git: How to merge two folder pointing to the same repository
  • How to checkout from git
  • What difference does `.git/CHERRY_PICK_HEAD` make when committing?
  • Git - Creating a .gitignore file
  • tracked files in untracked directory in github repository
  • One Solution collect form web for “Accidentally created branch with name origin/master”

    git branch -D origin/master will delete your local origin/master branch.

    This will not delete your origin‘s (remote) master branch. Deleting your remote branches would be either:

    (git 1.7.0)

    git push origin --delete branch

    or

    git push origin :branch

    Git Baby is a git and github fan, let's start git clone.