Git Tag는 크게 Lightweight 태그와 Annotated 태그 두 종류가 있습니다.
Annotated 태그의 경우 태그를 생성한 사람의 이름, 이메일, 생성 날짜, 태그메시지를 저장합니다.
이렇나 정보없이 태그를 생성하고 싶으시면 Lightweight 태그를 생성합니다.
- Annotated 태그 생성 방법
git tag -a 태그명 -m "태그메시지"
- Lightweight 태그 생성 방법
git tag 태그명
git show 태그명
명령어를 통하여 태그의 내용을 확인 할 수 있습니다.
이전 커밋에 태그를 붙이기 위해서는
git tag -a 태그명 -m "태그메시지" commit-ID
git tag 태그명 Commit-ID
와 같이 마지막에 commit-ID를 붙이시면 됩니다.
- 태그삭제
git tag -d 태그명
- 태그를 원격 저장소에 올리기
git tag origin 태그명
- 로컬에 있는 전체 태그를 원격 저장소에 올리기
git tag origin --tags
[광고] STEEM 개발자 커뮤니티에 참여 하시면, 다양한 혜택을 받을 수 있습니다.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Upvoted! Thank you for supporting witness @jswit.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit