퍼블리싱/git

github private 저장소 git clone 하기

리어카주인 2023. 4. 5. 23:13
728x90

비공개 저장소의 경우 clone시 다음과 같은 오류가 발생한다.

git clone https://github.com/repo.git

# output
remote: repository not found

이경우 개인 토큰을 추가하면 문제가 해결된다.

 git clone https://<토큰>@github.com/repo.git

토큰 발행 방법

setting
developer settings
personal access tokens -> generate new token
토큰생성
생성된 토큰 복사

 

728x90