Content
Tags?
By using tags certain points in the version history can be marked as important. Usually, release versions inter alia are being tagged.
Create tag
Tags can be easily created, by using the following commands:
With the help of the first command an annotated tag 1.2.3 with the commit message “v1.2.3” will be created. Subsequently the tag will be transmitted to the remote repository and stored as a full objects in the git database.
The following function can be used to simplify the process. Add the function to the bashrc-file and source it afterwards.
After that the tag 1.2.3 can be created by running the following command:
Make sure to be inside a git repository and the tag comply with the format [0-9]+.[0-9]+.[0-9]+.
Delete tag
In order to delete tags, two commands will suffice. First the tag will be deleted locally and then the adjustment will be pushed to the remote repository.