2012-01-19 3 views
0

git 서버에서 코드를 복제하려고합니다. Windows 7, 32 비트 컴퓨터를 사용하고 있습니다. msysgitTortoiseGit을 설치했습니다.msysgit에서 Windows 7 32 비트 컴퓨터에서 오류가 발생했습니다

git.exe clone --progress -v "http://vcs.hiit.fi/git/hiit_wfa" "C:\Users\athukora\Desktop\HIIT wide focus area\hiit_wfa" 

Cloning into 'C:\Users\athukora\Desktop\HIIT wide focus area\hiit_wfa'... 
error: The requested URL returned error: 401 (curl_result = 22, http_code = 401, sha1 = 9b1b551b5e4b7c7666df38c129d1ecc480c77347) 
error: Unable to find 9b1b551b5e4b7c7666df38c129d1ecc480c77347 under http://vcs.hiit.fi/git/hiit_wfa 
Cannot obtain needed object 9b1b551b5e4b7c7666df38c129d1ecc480c77347 
while processing commit 876cb1098d91238e87c239b8151eeba5330f4480. 
error: Fetch failed. 

누군가가이 문제의 원인을 파악하는 데 도움 주실 래요 : 나는 복제 명령을 시도 할 때마다

, 나는 다음과 같은 오류를 받고 있어요? .

답변

1

당신은 HTTP 프로토콜을 통해 저장소를 복제하고, 서버가 인증을 필요는 (401 오류는 "인증 필요"입니다

당신이 repoistory에 대한 자격 증명을 제공, 당신은 URL에 사용자 이름을 제공해야합니다

자격 증명을 제공하는 다른 방법에 대한
git.exe clone --progress -v "http://[email protected]/git/hiit_wfa" "<path>" 

망할 놈의 다음 암호를 입력하라는 메시지가 표시됩니다.

See this post.

+0

감사합니다. 이것은 나를 위해 일한 명령입니다 https : // username : [email protected]/git/hiit_wfa destination_folder – Paba

+1

암호를 쉘 기록에 저장 했으므로': password'를 거기에 두지 않는 것이 더 좋습니다 –

관련 문제