Git標籤
查詢標籤
列出所有標籤
git tag
加標籤
對最後一次commit加註標籤
git tag [tag_name]
對最指定的commit加註標籤
git tag [tag_name] [commit_hash]
Push特定標籤至remote端,需將標籤的commit都要先push上去,再執行
git push origin tag [tag_name]
Push所有的標籤至remote端,需將所有有標籤的commit都要先push上去,再執行
git push --tags
刪標籤
刪除local端的標籤
git tag --delete tagname
或者縮寫為
git tag -d tagname
刪除remote端的標籤
git push --delete origin [tag_name]
留言
張貼留言