I've done something incredibily stupid. I figured I should ask before I tried to "fix" it and accidentally make things worse.
I tried to list all remote branches in my git repo:
git branch remote
Obviously this isn't the correct command. Instead of listing remote branches, I created a local branch called remote. I should have done:
git branch -r
Can I just remove this branch with:
git branch -d remote
Will this have any effect on my remote branches? I don't want to accidentally delete anything on the remote side.
git update-ref -d refs/heads/remoteis a bit more explicit (as remote branches reside underrefs/remotes/<remotename>/<branchname>, while local branches are underrefs/heads/<branchname>).