Accidentally move to an unknown location

I have a GitHub repo that is the "source" I also push it to Heroku that the repo is "uat"

I tried to hit uat like

git push uat [branch name]:master

      

but i did it by accident

git push origin uat/master

      

and the result

To git@github.com:[origin name].git
 * [new branch]      uat/master -> uat/master

      

But when I go to GitHub I cannot find this branch. How do I remove this from GitHub?

+3


source to share


1 answer


You can delete the remote branch with

git push origin :uat/master

      



This should delete the remote branch that you accidentally created.

+2


source







All Articles