계정없이 GitHub 리포지토리를 복제 하시겠습니까? 할 수 없습니다 저장소를 GitHub에서 로컬 시스템으로

몇 가지 문서를 작성 중이며 구성되지 않은 시스템에 액세스하여 직접 테스트 할 수 없습니다

저장소를 GitHub에서 로컬 시스템으로 복제하기 위해 GitHub 계정이 필요한지 궁금합니다.



답변

아니요. 다른 URL 만 사용하십시오.

git clone git://github.com/SomeUser/SomeRepo.git

그러나 로컬 리포지토리는 변경 내용을 원래 리포지토리로 되돌릴 수 없다는 의미에서 “읽기 전용”입니다. 그래도 파일을 수정하고 변경 사항을 로컬로 커밋 할 수 있습니다.

대조적으로

git clone git@github.com:UserName/OtherRepo.git

필요한 SSH 키를 사용하여 환경을 올바르게 설정 한 경우에만 작동하지만 대신 원격 저장소에 변경 사항을 커밋 / 푸시 할 수있는 리포지토리가 제공됩니다.

(GitHub에 대한 의도하지 않은 광고에 대해 유감스럽게 생각합니다.)


답변

github에서 복제 해야하는 제품에 대한 일부 문서를 따르고있었습니다. 계정 설정을 방해하고 싶지 않았으므로 여기에서 요청한 내용을 정확하게 수행해야했습니다.

설명서의 명령은 다음과 같습니다.

git clone git://github.com/fcrepo4/fcrepo-message-consumer.git

그러나 그것은 저에게 실패합니다.

Cloning into 'fcrepo-message-consumer'...
ssh: Could not resolve hostname github.com: nodename nor servname provided, or not known
fatal: Could not read from remote repository.

나는 시도했다

git clone git://github.com/fcrepo4/fcrepo-message-consumer.git

답변 중 하나에서 제안했지만 실패했습니다.

Cloning into 'fcrepo-message-consumer'...
fatal: Unable to look up github.com (port 9418) (nodename nor servname provided, or not known)

마지막으로 작동 한 것은 다음과 같습니다.

git clone https://github.com/fcrepo4/fcrepo-message-consumer.git


답변

또는 http prefix 만 사용하면 .git 접미사도 필수는 아닙니다.

당신은 확인할 수 있습니다

git clone http://github.com/tizenteam/iotivity-example

관련 정보 :

https://help.github.com/articles/why-is-git-always-asking-for-my-password/


답변

Github 토큰 https://github.com/settings/tokens 를 사용하여 다음을 사용할 수 있습니다 .

git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/"

( ${GITHUB_TOKEN}실제 토큰으로 교체


답변