관리 메뉴

개발 노트

명령프롬프트(cmd)로 git clone 하는 방법 본문

인턴 앱 개발 : 20.07.06~08.31/Back-end : PHP

명령프롬프트(cmd)로 git clone 하는 방법

hayoung.dev 2020. 8. 14. 13:55

원래는 phpstorm에서 git clone 하려 했으나

phpstorm과 git이 충돌하여 clone 할 수 없다는 오류 발생

 

Event log :

Clone failed

Git@github.com: Permission denied (publickey).

Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

 

그래서 명령 프롬프트 창(CMD)를 통해 직접 git clone하는 방법!

 

1. cmd 창을 관리자 권한으로 실행한다.

 

2. 하단의 명령코드를 순서대로 입력한다.

 

명령 코드 :

git

f: 	(저장할 폴더 위치)

dir

git clone

git clone https:// 깃허브 토큰 입력 @github.com/받으려는 깃허브 주소

 

 

위의 과정을 실행하면 상단 사진과 같이 정상적으로

github token을 통해 clone하여 데이터를 다운받은 것을 확인할 수 있다.

반응형