Git筆記 — git tag 標籤常用指令 (Git note — git tag commands)
Jul 16, 2022
前陣子工作上使用到,之後也預計會常碰到,記錄下來~learned git tag recently
(updated: 2022.07.16)
git checkout <branch>
選想要創tag的位置 (checkout to the branch you wish to create the tag)git tag <tag name>
創建tag (create tag)git push --tags origin <branch_name>
推到遠端 (push to remote)git tag -l “<keyword want to search>
搜尋tag關鍵字看有什麼符合的tag (search for tags related to keyword)git tag -d <tag name>
刪除local tag (delete local tag)git push --delete origin <tag name>
刪除遠端tag (delete local tag)- 或是直接 (or just do this directly)
git push origin <tag name>