The following command will solve your problem
git push origin :temp
This command should be understood as "replace the remote temp branch with"
alternatively, you can also do the following, which is a shortcut to the above.
git push --delete origin temp
For more information, you can refer to the documentation .
source share