-
Suggestion
-
Resolution: Unresolved
-
None
-
None
In our repository we use Git Tags to tag which code is deployed on specific environment (TEST, UAT, PROD).
Whenever we make another deployment on enviroment we use the same Tag name (basically this means that old tag is deleted and new is created on different commit).
If another developer wants to refresh the tags, he uses Fetch / Fetch all tags using Sourcetree.
Since tag has the same name we get the following error:
"git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --prune --tags origin
_From https://dev.azure.com/GeniDevOps/Integrations/_git/NeuronEsbSales_
! [rejected] TEST-Sales -> TEST-Sales (would clobber existing tag)
Completed with errors, see above."
Doing some research we found out that as of Git 2.2.0 you need to explicitly specify the force flag:
git fetch origin --tags --force
source: https://stackoverflow.com/questions/9662249/how-to-overwrite-local-tags-with-git-fetch/21475727
Can you please add this option to force fatching the tags to Sourcetree?