赞
踩
- yum install -y git
- yum install -y git-daemon
- mkdir /usr/local/git
- mkdir /usr/local/git/projects
- mkdir /usr/local/git/projects/test-projects.git
- cd test-projects.git
- git --bare init
- cd ..
- chmod 775 test-projects.git/ -R
- chmod g+s test-projects.git -R
- set -m g:root:rwx test-projects.git
git daemon --verbose --export-all --base-path=/usr/local/git/projects/test-projects.git/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。