Annotated Git tags keep the information of related with tag and permanent in nature. It can be created using this command:
General guidelines:
git tag -a <tagname>An already existing tag can be modified using flag "-f" like this:
git tag -a -f <existing_tag_name>A specific tag can be pushed to remote like this:
git push origin <tagname>
Deleting tags:
- Deleting remote tag:
git push origin :<tagname> OR git push --delete origin <tagname>
- Deleting local tag
git tag -d <tagname>
General guidelines:
- git push where-to-push source-refs:destination-refs
- git push <remote> <local-branch>:<remote-branch>
- git push origin refs/head/master:refs/heads/master
- git push origin master:master