git gitosis 添加项目
example:
1,
user@my-test:~/perl_src$ git init
user@my-test:~/perl_src$ git add .
user@my-test:~/perl_src$ git commit -am "add"
2, 在: gitosis-admin 里面添加项目权限:
vi gitosis.conf
exp:
[group dev]
members =user@my-test
writeable=perl_src
user@my-test:~/gitosis-admin$ git add .
user@my-test:~/gitosis-admin$ git commit -am "add perl_src project"
user@my-test:~/gitosis-admin$ git push origin master
3, 把 perl_src 项目添加到 gitosis 里面。
user@my-test:~/perl_src$ git remote add origin git@my-test:perl_src.git
user@my-test:~/perl_src$ git push origin master