가끔
git fetch origin
해도 어느 특정 태그가 로컬에 다운되지 않는 경우가 있다
분명히 리모트에는 있는게 보이는데,
패치가 되지 않아 다음 방법을 사용했다
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#remote 태그 확인 | |
git ls-remote --tags origin | |
#특정 태그 명시 | |
git fetch origin v.0.1.3 | |
#From http://api.github.com/ | |
#* tag v.0.1.3 -> FETCH_HEAD | |
git tag v.0.1.3 FETCH_HEAD |
저런 방법으로 로컬에 추가했다.
git tag v.0.1.3 FETCH_HEAD
이런 것도 있다는걸 알았네.
'코드 > Git' 카테고리의 다른 글
[Git] 태그 일괄 삭제 (0) | 2020.12.11 |
---|---|
[Git] git cache 제거 (0) | 2020.06.06 |
[Stash] stash 된 내용 보기 (0) | 2019.05.30 |
[Git]로컬에서 리모트에 존재하는 브랜치로 새로이 체크아웃할때 (0) | 2016.05.20 |
[Git]리모트 브랜치 삭제 (0) | 2016.05.18 |