I mistakenly created a remote branch (MY-12345-own-branch), then did a checkout on it. So, if I do git branch --list
I see:
* Team_Branch_01
MY-12345-own-branch
master
I would like to delete ("uncheckout") MY-12345-own-branch, so that I remain with:
* Team_Branch_01
master
However, when I perform:
git reset --hard origin/MY-12345-own-branch
git branch --list
Nothing appears to have changed -- I am still getting:
* Team_Branch_01
MY-12345-own-branch
master
Why?
What am I missing?