Centos?????gitosis???ù???git?????
???????????? ???????[ 2014/11/7 17:41:56 ] ?????????????????? ???ù???
?????????????????????????????????????centos???????????????????á?
????1.?????git git??????
????2.???gitosis
????$ yum install python python-setuptools
????$ git clone git://github.com/res0nat0r/gitosis.git
????$ cd gitosis
????$ python setup.py install
????2.?????????????????????(?????????gitosis)
????$ ssh-keygen -t rsa #??????????·?????(????????)
????$ scp ~/.ssh/id_rsa.pub root@xxx:/tmp/ # ??????ssh public key????????
????3.?????gitosis[????????]
????$ adduser git # ???????git???(?????????顡groupadd git)
????$ su git # ?л???git?????
????$ gitosis-init < /tmp/id_rsa.pub # id_rsa.pub??????????????????/tmp?????????????????????????ж?????
????$ rm /tmp/id_rsa.pub # id_rsa.pub?????????????.
????4.?????????gitosis-admin [?????]
????$ git clone git@xxx:gitosis-admin.git # ?л???root????????????У????gitosis???????????????????gitosis-admin???????????????????gitosis.conf????? keydir ??????keydir????????git?????
????$ vi gitosis-admin/gitosis.conf # ??gitosis-admin???????
??????????git clone????????????git clone git@xxx:/home/git/repositories/gitosis-admin.git
????# ??gitosis.conf???????
????[group ????]
????writable = ?????
????members = ??? # ???????????? ??? keydir?μ?????????????
????# VI?°?ZZ????д?????λ??????????沢????????????
????$ cd gitosis-admin
????$ git add .
????$ git commit -a -m “xxx xx” # ??????????????????????????????git add .??????git add filename?????????????????????????????????д??
????# ???????????????PUSH??????????????????Ч??
????$ git push
?????????git push?????????????“ddress 192.168.0.77 maps to bogon?? but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!”?????????/etc/hosts???????ip?????????????????д??????????
??????????????????н????κε????????????????????git?????????????????????????????????????????????????????
??????????
??????????????gitosis????????????????????????????????????????????????5????????gitosis.conf?????????
????[group project1] # ??????
????writable = project1 # ???????
????members = xxx # ?????xxx???????????????????????????????????????
?????????????μ?git server?????
????$ git commit -a -m “????????project1?????????????project1?????????????xxx“ # “”??????????
????$ git push
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11