This is strange error that has occurred recently when I’ve been trying to Push to my Github repo from VS Code or SourceTree.
I don’t have too much time to dive into why the issue happens, but In short you need to bring your Git tags up to date with the remote repository. Fetch the remote tags and you can push your commits without being rejected afterwards.
To fix the annoying “Rejected! would clobber existing tag”. Just run the following command inside your Git repository.
git fetch --tags -f
That’s it! You can now push your code to Github, Gitlab, where ever your remote repository is hosted.