2
이상 내 자식 저장소를 미러링하고 싶어, 그래서 내가 그랬어는 HTTP를 통해 원격 망할 놈의 거울을 복제 할 수 없습니다 만, SSH
$ git remote add rolisoftdotnet ssh://[email protected]/repos/tvshowtracker.git
$ git push rolisoftdotnet master
내가 다른 곳에서 내 저장소를 복제 할 경우
지금, 그것이 내가 SSH를 통해 그것을 할 경우 작동 : 나는 HTTP를 통해 그것을 수행하려는 경우,
$ git clone ssh://[email protected]/repos/tvshowtracker.git
Cloning into tvshowtracker...
[email protected]'s password:
remote: Counting objects: 1423, done.
remote: Compressing objects: 100% (460/460), done.
remote: Total 1423 (delta 953), reused 1423 (delta 953)
Receiving objects: 100% (1423/1423), 2.08 MiB | 355 KiB/s, done.
Resolving deltas: 100% (953/953), done.
그러나 실패 이 오류와 함께 :
$ git clone http://lab.rolisoft.net/repos/tvshowtracker.git
Cloning into tvshowtracker...
warning: remote HEAD refers to nonexistent ref, unable to checkout.
나는 관련 게시물에서 본 모든 명령을 발행했지만 아무런 도움이되지 않았습니다.
나는 git으로 게임을 시작 했으므로 명령의 90 %가 무엇인지 모르지만 어쨌든 시도했다.
$ git push --all rolisoftdotnet
$ git branch -r
$ git branch master rolisoftdotnet/master
$ git checkout master
HTTP 액세스를 사용하려는 이유는 내 프로젝트에 공개 읽기 전용 액세스를 제공하기 위해서입니다.
이것은 효과가 있습니다. 감사! – RoliSoft