Do git tags get pushed as well?
You could do this: git push –tags
You could do this: git push –tags
git clone –depth 1 –branch <tag_name> <repo_url> –depth 1 is optional but if you only need the state at that one revision, you probably want to skip downloading all the history up to that revision.
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
git tag –contains <commit>
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
git tag <tag name> <tag name>^{} -f -m “<new message>” This will create a new tag with the same name (by overwriting the original).
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
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
The big plus of an annotated tag is that you know who created it. Just like with commits, sometimes it’s nice to know who did it. If you’re a developer and you see that v1.7.4 has been tagged (declared ready) and you’re not so sure, who do you talk to? The person whose name is … Read more
TL;DR The difference between the commands is that one provides you with a tag message while the other doesn’t. An annotated tag has a message that can be displayed with git-show(1), while a tag without annotations is just a named pointer to a commit. More About Lightweight Tags According to the documentation: “To create a … Read more