DevOps

Github 특정 Tag를 Fork하기

모이스쳐라이징 2025. 4. 16. 19:42

사전 작업

원본 repo의 main을 Fork 해서 개인 repo로 저장이 되었을때 진행 가능.   

 

원본 리포지토리 클론

git clone https://github.com/runatlantis/atlantis.git
cd atlantis

 

태그 기준 브랜치 생성

git checkout tags/v0.33.0 -b v0.33.0

 

GitHub 포크 리포지토리로 remote 변경
※ 반드시 workflow scope 포함된 PAT 사용

git remote set-url origin https://<YOUR_GITHUB_USERNAME>:<YOUR_PAT>@github.com/<YOUR_GITHUB_USERNAME>/atlantis.git

 

브랜치 푸시 (태그와 겹쳐 있으므로 refs로 명시)

git push -u origin refs/heads/v0.33.0