Programming/DevelopTool

[Intellij] github organization 연동 안됨 Clone failed

bisi 2021. 1. 26. 17:54

 

개인 github 주소가 아닌 여러사람이 공유하여 사용이 필요할 때가 있다.

 

그런 경우를 Organizations을 기능을 활용하여 관련있는 여러 Repository를 한번에 관리가 가능한다. 

 

 

Organizations의 repository를 intellij에 clone 작업하는 중에 아래와 같이 에러가 발생하였다. 

 

에러 내용은 보안 문제로 인해 해당 github 주소를 불러올 수 없다는 것 이다. 

 

에러화면

 

아무리 계정을 로그인해도 안되다해서 구글링한 결과, token을 생성하여 clone작업을 실행하면 바로 정상 처리 된다. 

 

URL을 통해서 github 프로젝트를 가져올때, 계정인증을 요청하게 되는데,

 

그때 via login 이 아닌 via token으로 처리하면 해결완료!

 

 

ps. token 생성방법은 아래 gihub 문서에 자세히 나와있다. 

 

docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token

 

Creating a personal access token - GitHub Docs

Creating a personal access token You should create a personal access token to use in place of a password with the command line or with the API. Personal access tokens (PATs) are an alternative to using passwords for authentication to GitHub when using the

docs.github.com