Hi,
Create GIT Tag on your project is useful to keep track of your project release.
Step to create the Tag in GIT are:
1. # git tag -a V2 -m "tag 2"
2. # git push origin V2
Where, V2 : relate the tag name
If you want to switch into previous tag
# git checkout tag-name
where tag-name, is the tag no where you want switch back/fro to the release.
To get list GIT tag
# git tag
To cloning the branch or tag
# git clone --branch tag_name repo_url
Where,
tag_name : GIT tag no.
repo_url : GIT URL
To get the checkout from the Tag
# git checkout tags/tag-name
I hope above GIT tag command is useful to manage tag.
Create GIT Tag on your project is useful to keep track of your project release.
Step to create the Tag in GIT are:
1. # git tag -a V2 -m "tag 2"
2. # git push origin V2
Where, V2 : relate the tag name
If you want to switch into previous tag
# git checkout tag-name
where tag-name, is the tag no where you want switch back/fro to the release.
To get list GIT tag
# git tag
To cloning the branch or tag
# git clone --branch tag_name repo_url
Where,
tag_name : GIT tag no.
repo_url : GIT URL
To get the checkout from the Tag
# git checkout tags/tag-name
I hope above GIT tag command is useful to manage tag.
No comments :
Post a Comment