标签:
1.useradd git
2.cd git mkdir project.git cd project.git
3.git init --bare
4.vi config 添加 denyCurrentBranch = ignore
5.ssh-keygen -t rsa
6. ssh-copy-id -i ~/.ssh/id_rsa.pub git@domain
7.ssh-add
8.git remote add origin git@domain:/home/git/project.git
标签:
原文地址:http://www.cnblogs.com/bohai/p/4484954.html