2013年10月14日 星期一

[Git] How to tag by using git

Add tag (Tag at local first)

-a <tag name> -m <description about the tag>

git tag -a xxx -m xxx

git tag "description" <commit id>

Upload to server

git push origin --tags

Checkout by using tag

git clone -b "tag name" ssh://root@111.10.10.10/home/happy/git

Revert by using tag

git reset --hard

Reference:

Related Posts:

0 意見:

張貼留言