Windows下配置Git服务器和客户端

http://www.cnblogs.com/lwme/archive/2012/12/25/configuring-git-server-and-client-on-windows.html]

选择Git服务器部署策略

找了一圈,发现如下方法来架设Git服务器:

  1. Bonobo Git Server:http://www.chodounsky.net/bonobo-git-server/ 需要IIS6+/.net 4/asp.net MVC 3,官方提供了比较详细的安装说明,但据说问题不少
  2. WebGit.NET:https://github.com/otac0n/WebGitNet/wiki/Getting-Started 需要IIS/asp.net MVC 3/msysgit,好久不更新了
  3. Git-Web-Access:https://github.com/yysun/Git-Web-Access 又一个MVC开发的,也好久没有更新
  4. git-dot-aspx:https://github.com/JeremySkinner/git-dot-aspx 需要iis7+/.net 4/asp.net MVC 2,也好久没有更新
  5. Grack:https://github.com/schacon/grack  需要ror环境,也好久没有更新
  6. GitStack:http://gitstack.com/ 对系统的要求比较高,2003/xp就无法支持了
  7. scm-manager:https://bitbucket.org/sdorra/scm-manager 需要Java环境,更新比较频繁,安装配置比较简单
  8. Gitblit:http://gitblit.com/ 同样需要Java环境,安装配置比较简单
  9. Gitalist:http://www.gitalist.com/ 需要perl环境,安装配置也简单
  10. Indefero:http://www.indefero.net/open-source/ 需要PHP/MySQL/Apache等,好久不更新
  11. Git Daemon即守护进程:通过git daemon --reuseaddr --base-path=/path/to/git/启动,通过git://协议进行访问,使用9418端口进行通信,需要配合Gitosis才能好用
  12. Gitolite:https://github.com/sitaramc/gitolite 需要cygwin/ssh以及一堆设置
    1. http://therightstuff.de/CommentView,guid,b969ea4d-8d2c-42af-9806-de3631f4df68.aspx
    2. http://beta.wikiversity.org/wiki/Topic:Git/%E5%9C%A8Windows%E4%B8%8B%E5%AE%89%E8%A3%85Gitolite
  13. gitosis:https://github.com/tv42/gitosis 需要cygwin/ssh以及一堆设置
    1. http://markembling.info/2009/08/git-server-gitosis-and-cygwin-on-windows
    2. http://jerabi.com/sdionne/blog/2010/09/06/git-repository-server-gitosis-on-win7-working/
  14. GitLab:http://gitlabhq.com/ 需要ruby/Gitolite/Nginx等一堆
  15. CopSSH+msysgit+putty等工具,配置好繁琐
    1. http://code.google.com/p/tortoisegit/wiki/HOWTO_CentralServerWindowsXP
    2. http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/
    3. http://www.codeproject.com/Articles/296398/Step-by-Step-Setup-Git-Server-on-Windows-with-CopS
  16. 通过GitHub.com,或者类似的托管服务,这个是最省事的了
  17. Windows文件共享,但是不利于权限控制,极不推荐
    1. git remote add origin file:///ipaddress/sharename/
    2. git clone file:///ipaddress/sharename/

通过比较发现需要CopSSH/Cygwin等环境的应用配置起来比较复杂,剩下的几个支持git smart http协议的web应用配置起来比较简单:

  1. Bonobo Git Server
  2. WebGit.NET
  3. Git-Web-Access
  4. scm-manager
  5. Gitblit
  6. Gitalist

最后再根据更新/稳定等因素筛选出Bonobo Git Server、scm-manager、Gitblit,结果最终选择了scm-manager。

 

posted @ 2013-10-01 17:06  IAmAProgrammer  阅读(538)  评论(0编辑  收藏  举报