git tag 관리

박종혁·2022년 9월 21일
0

git tag를 remote로 전달하기 위해서는
git push origin --tags

하나의 git tag만 push 하는 경우에는
git push origin <tag_name>

git tag 이용하는 경우 remote에 tag 가 많이 누적되어 삭제해야 하는 경우 local 환경 source repository 터미널에서

git push -d origin $(git tag -l "DA_20.*")

해당 명령어로 여러 tag 값 동시 삭제가 가능합니다.
간혹 아래와 같은 에러가 나오는 경우

fatal: --delete doesn't make sense without any refs

아래처럼 직접 태그 값을 지정하여 삭제 가능합니다.
git push -d origin DA_2.22.18

profile
메모 메모

0개의 댓글