When I do git branch I get that I am on branch v0.2.
git branch
v0.1
* v0.2
But when I do git push it says "The upstream branch of your current branch does not match the name of your current branch "
git push
fatal: The upstream branch of your current branch does not match
the name of your current branch. To push to the upstream branch
on the remote, use
git push origin HEAD:v1.1
To push to the branch of the same name on the remote, use
git push origin v0.2
Initially I had named this branch v1.1 but now I have renamed it to v0.2 locally and remotely.
How can I fix this once and for all.