老手请直接过滤,谢谢
Create remote repository:
ssh mpapis@niczsoft.com -C "git init --bare repos/library3.git"
Create local repository:
git init
git add .
git commit -m "initial commit"
Tell local repository to synchronize with remote repository:
git remote add origin mpapis@niczsoft.com:repos/library3.git
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
git push
参考这个:
http://niczsoft.com/2011/03/fastest-way-to-get-git-server-v2/
--
Deshi Xiao
Twitter: xds2000
E-mail: xiaods(AT)gmail.com