Git-1.7.11-preview20120710.exe가 사용했습니다. 나는 그런로컬 저장소에 밀어 넣을 수 없습니다.
cd "GIT scm/"
git init --bare shahed.git
cd shahed.git
git update-server-info
내가
git daemon --reuseaddr --base-path="E:/GIT scm/" --export-all --verbose --enable=receive-pack
은 그 때 나는 동안
git clone git://localhost/shahed.git
Cloning into 'shahed'...
warning: You appear to have cloned an empty repository.
cd shahed
touch shahed.txt
touch shohel.txt
git add *.*
git commit -m 'ok'
[master (root-commit) 2062f1d] 'ok'
0 files changed
create mode 100644 shahed.txt
create mode 100644 shohel.txt
git push
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
Everything up-to-date
다음과 같이 자식 저장소를 복제 명령에 따라 자식 데몬을 시작 자식 저장소를 만들 메시지
다음과 같은 자식 데몬 콘솔 로그[4044] Ready to rumble
[736] Connection from [::1]:50076
[736] Extended attributes (16 bytes) exist <host=localhost>
[736] Request upload-pack for '/shahed.git'
[4044] [736] Disconnected
[4860] Connection from [::1]:50079
[4860] Extended attributes (16 bytes) exist <host=localhost>
[4860] Request receive-pack for '/shahed.git'
[4860] fatal: The remote end hung up unexpectedly
하지만 나는 밀어 넣을 수 없습니다. 아무도 나에게 git 저장소를 만드는 것을 놓친 단계를 말해 준다. 모든 이니셔티브가 나에 의해 수행됩니다 확인하거나 어디에 자식 저장소를 구성하기위한 부족합니다.
나는 답변을 테스트했지만 저장소 분기/복제 시간 모두 master 분기를 만들 수 없습니다. 강제 옵션을 사용했지만 작동하지 않았습니다. 'git push -f origin master'는 오랜 시간이 걸립니다. 마침내 강제로 종료됩니다. –
'git-daemon' 설정이나 방화벽 설정 등의 문제와 비슷하게 들립니다. 나는 수동으로 테스트를 재현했고,'git push origin master '는 확실히 나를 위해 일했다. (하지만 무조건'git push'는하지 않았다.) – twalberg
방화벽은 차단되지 않았다. 지금까지는 경로 설정과 관련하여 뭔가 부족함/설정 미스/일부 이슈를 추측 할 수 있었다. . 내가 다시 시작할 웹 링크를 나에게 알려줄 수 있겠 니? –