Accidentally created branch with name origin/master
In a fit of unbelievable stupidity I accidentally ran
git checkout -b origin/master
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.
One Solution collect form web for “Accidentally created branch with name origin/master”
git branch -D origin/master will delete your local
This will not delete your
master branch. Deleting your remote branches would be either:
git push origin --delete branch
git push origin :branch