???????′????????????git server ????е????????????????????.
????# ??????????????(????????????? XXX )
????????????????????????洴????????????project1????????git server ??????????????????????.??? ??????? project1???gitosis.conf?????????£?
????$ mkdir /home/???/project1
????$ cd /home/???/project1
????$ git init
????$ git add . # ??????? ??????????????
????$ git commit -a -m “????????project1″
????# ??????????????git server?????????.
????$ git remote add origin git@xxx:project1.git # xxx??????????
????$ git push origin master
????# ?????????????????????
????$ git push git@xxx:project1.git master
????????????????? git push origin master ???????????′??? error: src refspec master does not match any. error: failed to push some refs to 'git@192.168.0.77:pro2.git' ????????????????????????????????′???????????????->add -> commit -> push ????????
????$ touch a.txt
????$ git add a.txt
????$ git commit -a -m 'add a.txt'
????$ git push
????------------------------------------------------------------------------------------------------ ?????git clone?????????“
????error: cannot run ssh: No such file or directory - cygwin git
????”??????????????а??ssh????????????ο???http://blog.haohtml.com/archives/13313 ????????????????????????????????????????????id_rsa??????home?????.ssh??????????(?????????????????????????????????id_rsa???????????????????????ν????????) ?????git???????????????
????====================================================
????????????????
??????????? /home/git/repositories/gitosis-admin.git/hooks/post-update ?????м?????? 0755
????1. git???????????????
???????
????????δ???
???????
???????id_rsa.pub??keydir?????'gitosis???.pub'???????miao.pub???????.pub???????
????2. ERROR:gitosis.serve.main:Repository read access denied
???????
????gitosis.conf?е?members??keydir?е??????????£???gitosis?е?members = foo@bar????keydir?е?????????foo.pub
???????
?????keydir????????gitosis??members????????????? ???members = foo ?? ??????????foo@bar.pub