Git筆記 — git tag 標籤常用指令 (Git note — git tag commands)

--

前陣子工作上使用到,之後也預計會常碰到,記錄下來~learned git tag recently

branch + tag 😆

(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>

--

--

艾莉在路上 | Ellie On The Way
艾莉在路上 | Ellie On The Way

Written by 艾莉在路上 | Ellie On The Way

Software Engineer/ Front-end/ UIUX 💡中南美洲數位遊牧中 ✈️ You can find me ⬇️ https://linktr.ee/ellie.yang

No responses yet