Git error: Updates were rejected because tag already exists in the remote! (Sourcetree)

Written by Raymon Schouwenaar on


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 ''
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! 🙂


Latest posts

What is the JavaScript Set in ES2015 and when should you use it?

The ES2015 spec is full of new features that continuously be introduced in all the new browsers. The Set collection is one of those new things.

My first thought was, well I could just use a normal Array! But I will show you what you can do with the Set collection.

CSS Grid Layout Metro design blocks

The times have come that we don’t have to fiddle around with Floats and Tables anymore! Flexbox is already an established term in the industry of Frontend Developers.