Configure Git server and client hyper-complete under windows

Source: Internet
Author: User

In order to use with Redmine, Git is specifically used to do version control.

Git Candy© is a git distributed version control platform based on ASP. Git Candy's goal is to easily kill Bonobo, catch up with GitHub, and surpass GitHub with micro-innovation.

SOURCE in: Http://github.com/Aimeast/GitCandy
Demo in: Http://git.53wb.com https://gitcandy.com/Repository

Bonobo to Gitcandy Database conversion program: http://git.53wb.com/Repository/Tree/Bonobo2Candy/

Choose a git server deployment policy

Find a lap and find the following ways to set up a git server:

  1. git candy:http://github.com/aimeast/gitcandy/ ae great god's work, Git Candy© is a git distributed version control platform based on ASP. Git Candy's goal is to easily kill Bonobo, gradually chasing GitHub, and using micro-innovation over GitHub
  2. Bonobo Git server:http://www.chodounsky.net/bonobo-git-server/ requires iis6+/.net 4/asp.net MVC 3, and the official provides more detailed installation instructions, But it's said to be a lot.
  3. webgit.net:https://github.com/otac0n/webgitnet/wiki/getting-started need iis/asp.net MVC 3/msysgit, long time no update
  4. Git-web-access:https://github.com/yysun/git-web-access Another MVC development, but also for a long time no update
  5. git-dot-aspx:https://github.com/jeremyskinner/git-dot-aspx need iis7+/.net 4/asp.net MVC 2, also long time no update
  6. Grack:https://github.com/schacon/grack need ROR environment, also long time no update
  7. gitstack:http://gitstack.com/ to the system requirements are relatively high, 2003/XP can not support the
  8. Scm-manager:https://bitbucket.org/sdorra/scm-manager need Java environment, update more frequently, installation configuration is relatively simple
  9. gitblit:http://gitblit.com/ also requires a Java environment, the installation configuration is relatively simple
  10. gitalist:http://www.gitalist.com/ requires a Perl environment, and the installation configuration is simple
  11. indefero:http://www.indefero.net/open-source/ need Php/mysql/apache Wait, long time not updated
  12. Git daemon is the daemon: through the git daemon--reuseaddr--base-path=/path/to/git/boot, access through the GIT://protocol, using 9418 port for communication, need to cooperate with gitosis to be useful
  13. Gitolite:https://github.com/sitaramc/gitolite requires cygwin/ssh and a bunch of settings
    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
  14. Gitosis:https://github.com/tv42/gitosis requires cygwin/ssh and a bunch of settings
    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/
  15. gitlab:http://gitlabhq.com/ need Ruby/gitolite/nginx, wait a bunch .
  16. Copssh+msysgit+putty and other tools, the configuration is very cumbersome
    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
  17. This is the easiest thing to do with github.com, or a similar hosting service.
  18. Windows file sharing, but not for permission control, very not recommended
    1. Git remote add Origin file:///ipaddress/sharename/
    2. git clone file:///ipaddress/sharename/

By comparing applications that require copssh/cygwin and other environments to be more complex, the remaining few Web applications that support the GIT Smart HTTP protocol are relatively simple to configure:

    1. Bonobo Git Server
    2. Webgit.net
    3. Git-web-access
    4. Scm-manager
    5. Gitblit
    6. Gitalist

Finally, based on the update/stability and other factors to filter out the Bonobo Git Server, Scm-manager, Gitblit, the results finally chose Scm-manager.

Configure Scm-manager

Install the Java environment on the machine, select the offline version to download the installation from http://java.com/zh_CN/download/manual.jsp

Download the latest scm-server-1.24-app.zip from Https://bitbucket.org/sdorra/scm-manager/wiki/download

Install as System service:

1 scm-server.bat install

Then the system service is set to start automatically, and then start the service can be accessed through http://localhost:8080, the default user name and password are scmadmin.

Log in to the system and modify the GIT Center inventory path later through repository types.

Modify the default administrator user name or some other configuration can be found in the%userprofile%\.scm\config directory of the corresponding XML configuration file to modify, note to restart the Scm-server service.

Update: A low-version operating system such as Server 2003 may be in a directory C:\Documents and Settings\Default USER\.SCM, not the current user folder

If you want to enable mail and reminders, you'll also need to install plugins scm-mail-plugin, Scm-notify-plugin, and then fill in the settings with the SMTP settings associated with mail.

If the code submission is to be associated with Redmine, you will also need to install the plug-in Scm-redmine-plugin and then configure the Redmine address as http://localhost:3000 in the Redmine tab of the project information;

If you want to enable updates, auto-shutdown, you will also need Scm-manager and redmine to use the same username password, and the rest API must be enabled in the Redmine settings;

Then you need to use git commit–m "fix content" (#问题ID) to close the issue when you submit it, and you can configure it with keywords such as fix,fixed.

Client Installation

Regardless of whether you end up using that kind of client (Git extensions:http://code.google.com/p/gitextensions/or tortoisegit:http://code.google.com/p/ tortoisegit/), Msysgit must be installed: Download the latest Git-1.8.0-preview20121022.exe installation from http://msysgit.github.com/.

It is sufficient to use the command line only to install Msysgit, if you want to use the graphical interface to choose Msysgit's own Git GUI, or an additional git extensions or tortoisegit; personal feeling git Extensions's graphical interface is quite powerful, if you install it, be sure to install the KDIFF3.

Even more convenient is the integration with Visual Studio, where you can choose to install the Visual Studio plug-in integration when you install Git extensions, plus a tool to further enhance the convenience of git Source Control provider:http://gitscc.codeplex.com/, which relies on msysgit and git extensions, can be downloaded or installed on the official web site or in the Visual Studio Extension management search for git.

Git configuration

After the GIT client is installed, it is a good idea to configure a global user name and mailbox:

12 git config --global user.name "Your Name Here"git config --global user.email [email protected]

This configuration may be used when creating a new repository, and you can view the configuration by following the command:

1 git config --list
Git related info
    1. Pro Git Chinese: http://git-scm.com/book/zh http://progit.org/book/zh/ has a wall, use Google to find a free pdf version directly download
    2. Git Community Book Chinese version: http://gitbook.liuhui998.com/index.html
    3. Git magic:http://www-cs-students.stanford.edu/~blynn/gitmagic/intl/zh_cn/
    4. The way git manages to develop: http://blog.leezhong.com/translate/2010/10/30/a-successful-git-branch.html
    5. How to use github:http://www.yangzhiping.com/tech/github.html efficiently
    6. Graphic git:http://marklodato.github.com/visual-git-guide/index-zh-cn.html
    7. Notes version control-using git: http://www.nshen.net/sitelog/2011/08/03/git-note.html
    8. Git story: http://gitstory.wordpress.com/category/git/ git Web access author (note the wall)

You can also walk through git immersion step-by-step Walkthrough: http://gitimmersion.com/lab_01.html

Configure Git server and client hyper-complete under windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.