Wednesday, May 19, 2021

GIT Basics - Simple tag example

git status --> clean

git log --oneline --graph --decorate --all


create tag

git tag myTag

if you get history, will have a new item at very top

git log --oneline --graph --decorate --all

*a23413 (HEAD, tag: myTag, origin/master, origin/HEAD, master) Changes....


you can see the content of tag with "--list" option

git tag --list

--------

myTag

Note: if you forget, -- you will probably will create a new tag name "list"


you can use name of the tag with other commands

git show myTag

delete the tag

git tag --delete myTag


git tag --list --> nothing

git log --oneline --graph --decorate --all --> Note: tag is note listed

*a23413 (HEAD, origin/master, origin/HEAD, master) Changes....

No comments:

Post a Comment