Add a tag in remote repository without adding the repo on local
13th
June 2024
Building on Arialdo Martini’s solution it’s possible to execute with out setting up a remote first, eg:
git push \ git@github.com:jjrscott/jspretty.git \ 09f2068:/refs/tags/a_tag_name
Further, if on something like Github one can bundle the credentials into the command:
git push \ https://jjrscott:ghp_TdoGE1HjVT5OkY@github.com/jjrscott/jspretty.git \ 09f2068:/refs/tags/a_tag_name