How can I delete a remote tag?

You can push an ’empty’ reference to the remote tag name: git push origin :tagname Or, more expressively, use the –delete option (or -d if your git version is older than 1.8.0): git push –delete origin tagname Note that git has tag namespace and branch namespace so you may use the same name for a … Read more

In git, how do I sync my tags against a remote server?

…also prune tags no longer on a remote git fetch gets with Git 2.17 (Q2 2018) an handy short-hand for getting rid of stale tags that are locally held. See commit 6317972, commit 97716d2, commit e249ce0, commit 627a129, commit d0e0747, commit 2c72ed7, commit e1790f9, commit 59caf52, commit 82f34e0, commit 6fb23f5, commit ca3065e, commit bf16ab7, commit … Read more

Create a tag in a GitHub repository

You can create tags for GitHub by either using: the Git command line, or GitHub’s web interface. Creating tags from the command line To create a tag on your current branch, run this: git tag <tagname> If you want to include a description with your tag, add -a to create an annotated tag: git tag … Read more

How to list all Git tags?

git tag should be enough. See git tag man page You also have: git tag -l <pattern> List tags with names that match the given pattern (or all if no pattern is given). Typing “git tag” without arguments, also lists all tags. More recently (“How to sort git tags?“, for Git 2.0+) git tag –sort=<type> … Read more

Depend on a branch or tag using a git URL in a package.json?

From the npm docs, using a git URL: git://github.com/<user>/<project>.git#<branch> git://github.com/<user>/<project>.git#feature\/<branch> As of NPM version 1.1.65, you can use a shorten github URL: <user>/<project>#<branch> UPDATE 2022 Don’t use git:// protocol for GitHub, as it is not supported npm ERR! The unauthenticated git protocol on port 9418 is no longer supported. npm ERR! Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for … Read more