Git introduction #
Git is a version control system used for tracking changes in computer files. It is generally used for source code management in software development. Git is used to tracking changes in the source code. The distributed version control tool is used for source code management.
The basic Git workflow goes something like this:
- You modify files in your working tree.
- You selectively stage just those changes you want to be part of your next commit, which adds only those changes to the staging area.
- You do a commit, which takes the files as they are in the staging area and stores that snapshot permanently to your Git directory.
Steps for deleting a tag from command line #
1. Open command line or terminal depending on your operating system
2. Find the tag you want to delete
This can be done easily by finding the tag by going to your repo source control. Red box contains the tag name you want to delete:
Or you can also use git cli to see all your tags:
git tag -l
The output will be something like this, the red box contains the tag name in our example:
3. Copy the tag name
4. Delete tag
To delete a tag , run:
git tag -d v4.0.1
To delete tag from repository, simply run:
git push origin --delete v4.0.1
That’s it! You have successfully deleted a tag.