Skip to main content
  1. Learn center
  2. Software Development
  3. Guides
  4. Git tutorial
  5. Git 사용 방법
  6. Git에서 태깅을 사용하는 방법
  7. 태그 추가
GuidesSoftware DevelopmentBacklog
Git

Project and code management together.

태그 추가

Git tag command 명령을 사용하여 tag1이라는 새 태그를 추가합니다.

$ git tag tag1

그런 다음 매개 변수 없이 태그 명령을 실행하면 방금 추가한 태그를 포함하여 이 저장소에 태그 목록이 표시됩니다.

$ git tag
  tag1

태그 정보가 있는 기록 로그를 보려면 --decorate 옵션을 사용하여git log 명령을 실행합니다.

$ git log --decorate
  commit e7978c94d2104e3e0e6e4a5b4a8467b1d2a2ba19 (HEAD, tag: tag1, main)
  Author: yourname <yourname@yourmail.com>
  Date:   Wed Jul 18 16:43:27 2022 +0900

      first commit

지금 우리의 기록은 이렇습니다.

Add a tag "tag1" to the commit indicated by the current HEAD

Subscribe to our newsletter

Learn with Nulab to bring your best ideas to life