I add the command to SourceTree
as a Custom Action on my MacOS.
Setting Custom Actions
by Sourcetree
-> Preferences...
-> Custom Actions
Script to run
have to be the git
path.
I use git fetch --prune --prune-tags origin
to sync tags from remote to local.