A while ago i worked at a big project with a big team. But for Git i use Sourcetree. And when i wanted to push my changes, i got this error:
! [rejected] folder-name/folder-name-1.3 -> folder-name/folder-name-1.3 (already exists) updating local tracking ref 'refs/remotes/origin/master' error: failed to push some refs to 'https:[email protected]/gitrepo.git' hint: Updates were rejected because the tag already exists in the remote.
So it seems that i was trying to push an tag that already exists in the remote repository. But how you can avoid this? This solution worked for me!
When you want to push your changes with Sourcetree. Un-select the “Push all tags” option. So you avoid to get this error.
If you have any questions or comments on this solution? Or did it helped you? Please add them below! 🙂