방법
git tag -l '태그명' | xargs git push --delete <remote_name>
git tag -l '태그명' | xargs git tag -d
샘플
git tag -l '1.*' | xargs git push --delete origin
git tag -l '1.*' | xargs git tag -d
*는 매칭되는 모든것이다. 위 샘플은 1. 으로 시작되는 모든 tag 삭제
tag 삭제하다가 아래와 같은 에러 나오는 경우가 있다.
dst refspec <tagname> matches more than one.
tag이름과 매칭되는 branch가 있을 경우가 있다.
branch를 먼저 삭제하면 된다.
'개발&IT' 카테고리의 다른 글
Git tag 일괄 삭제 (0) | 2020.09.02 |
---|---|
parsing된 xml를 다시 xml 원복하기 (0) | 2020.04.17 |
groovy xml element 삭제 (0) | 2020.04.17 |
OKHttp Client 단점 (0) | 2020.01.20 |
워드프레스를 포기하다 (0) | 2019.12.23 |
groovy에서 json를 bean에 입력하기 (0) | 2019.12.21 |