Resolving “Updates were rejected because the tag already exists in the remote” git push error

You may occasionally encounter the following when trying to push your commit to origin:

 error: failed to push some refs to 'https://github.com/perihelionkk/example.git'
 hint: Updates were rejected because the tag already exists in the remote.

From the command line git pull -t  or git pull --tags  should resolve this. If you are using SourceTree you can perform a similar action via your UI by clicking “Fetch” and then selecting “Fetch and store all tags locally” before pressing OK.

In some cases that will trigger another error: “would clobber existing tag”. You should be able to resolve this with a git pull -t -f  or git pull --tags --force  which will fetch all tags from the remote and overwrite the local ones. This should resolve your issue and allow you to push to origin error-free.