I have written the following git alias to push my commits to origin and tag it with the paramater passed to the alias, and then push the tags too
pomt = !git push origin master && git tag '$1' && git push --tag
usage :
git pomt myTagGoesHere
however, this fails with an error
fatal 'myTagGoesHere' does not appear to be a git repository
I have since found there are other options for achieving this Push git commits & tags simultaneously
but I am curious what is wrong with the alias I have created and would still like to know how to do it this way just for the sake of learning how to create aliases with parameters
this is on Windows, btw, if that makes any difference to the shell scripting