I wanted to resync the tags on my local git repository with the ones on our remote server, using this answer provided on StackOverflow:
git tag -l | xargs git tag -d git fetch --tags
I've got git for windows portable installed which includes
xargs from FindUtils for Windows (as best I can tell).
When I run the first part of the command, all I get is:
xargs: git: No such file or directory
If I modify the command to run:
git tag -l | xargs echo
It correctly "echos" the tags for me. So, my only conclusion is that xargs for some reason can't resolve executables from the path.
How can I get xargs to properly execute what's passed to it (without resorting to passing the full path to