Following commands can be used to delete a tag in git.
1. Delete tag from local
git tag -d [tag];
2. Push changes to remote
git push origin :[tag]
Example :
Let say you have created a tag by name v6.37.1 . Now to delete the tag from git :
1. git tag -d v6.37.1
2. git push origin :v6.37.1
NOTE :
If your tag has the same name as one of your branches then ,
1. git tag -d [tag]
2. git push origin :refs/tags/[tag]
1. Delete tag from local
git tag -d [tag];
2. Push changes to remote
git push origin :[tag]
Example :
Let say you have created a tag by name v6.37.1 . Now to delete the tag from git :
1. git tag -d v6.37.1
2. git push origin :v6.37.1
NOTE :
If your tag has the same name as one of your branches then ,
1. git tag -d [tag]
2. git push origin :refs/tags/[tag]
No comments :
Post a Comment