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

'퍼블리싱 > git' 카테고리의 다른 글

github 대용량 파일 올리기  (0) 2023.04.06
.gitignore  (0) 2023.03.26
git 명령어 모음  (0) 2023.03.25
git branch 전략 - GitHub flow  (0) 2023.03.10
git branch 전략 - Git flow  (0) 2023.03.10

+ Recent posts