If you have this error, when you are pushing some codes to git server:
error: dst refspec refs/heads/main matches more than one
It might be that you locally/remotely has a tag called refs/heads/main
I believe you don't want this tag.
How to delete this tag both on remote git server and locally?
- delete tag on remote git server
git push origin :refs/tags/'refs/heads/main'
- delete tag on locally
git tag -d 'refs/heads/main'
Don't forget the '
mark, that's why I had this error from the beginning.
Then go push your codes to any branch you want. Fix.