Use the open-source ASP. net mvc program bonobo git server to build a git Server

Source: Internet
Author: User
Tags windows x64 git client using git

I don't need git now. I'm sorry to say that I am.ProgramMember.

When you want to use gitSource codeWhen the server is a Windows system, you will face a problem: how to build a git server on windows?

Take a look at this articleArticle(Setting up a msysgit server with copssh on Windows) Will you forget to block the configuration steps? You will lament "the wonderful Linux World, the helpless Windows world "?

However, programmers are naturally happy to solve the problem. No matter which world you live in, solving problems is king. As a result, some programmers solved this problem and used ASP. net mvc to write an open-source git server program, bonobo git server.

Bonobo git server is developed based on. NET Framework 4.0 + ASP. net mvc 3. The database uses SQLite and git uses gitsharp-Git for. NET and mono.

To run bonobo git server, you only need IIS + WebDAV (IIS 7.5 comes with WebDAV, IIS 7.0 needs to be downloaded and installed ).

The following is a brief introduction to the installation and configuration steps. This step has been tested and has been successfully deployed.

Part 1 bonobo git server site installation and configuration

1. Download bonobo git server and decompress it

: Http://www.chodounsky.net/bonobo-git-server/

If you want to view the sourceCodeDownload: https://github.com/jakubgarfield/bonobo-git-server.

2. Configure an IIS Site (for example, git.cnblogs.com) to point to the folder where bonobo git server is located.

A) The application pool should run in. NET Framework 4.0.

B) install ASP. NET mvc3.

C) if the server uses Windows x64, You need to download the 64-bit version of system. Data. SQLite to the bin folder to replace the 32-bit version.

3. Access the site configured in the previous step through a browser, such:

4. Enter the Default User Name Admin and password admin to go to the page:

5. Click "global settings" to set the root directory of the code library, and set the file system permissions for the directory (write permissions required ):

6. Click "respositories" and "create new repository" to create a new code library:

7. After the code library is created, click the code library name to view information about the code library, such as git repository location, which is the most important information.

8. Install/configure WebDAV

Install

1) if it is IIS 7.5 (Windows 7, Windows Server 2008 R2), WebDAV is self-contained. You only need to add this component. For detailed configuration methods, see installing WebDAV on IIS 7.5.

2) If it is IIS 7.0, You need to download and install it separately. For details, see installing WebDAV on IIS 7.0.

Configuration

Add an authoring rule:

At this point, the basic configuration of the GIT server site is complete.

Part 2 brief steps for git Client

Now you can submit code through the GIT client. tortoisegit is used here.

1. Install tortoisegit: http://code.google.com/p/tortoisegit/ (msysgit needs to be installed first), vs2010 plug-in can use git source control provider.

2. right-click the folder where you want to place the code and select "Git clone". In the URL, enter the address of the code library, enter the default user name and password, and then start cloning... the following screen indicates that the clone is successful.

3. add a code file to the code library folder, and then use the tortoisegit menu [git commint-> "master "... "] commit code (this commit is only submitted to the local code library and not to the server, which is one of the main differences between git and SVN ).

4. Submit to the GIT server through tortoisegit> push.

Part 3 other operations on the GIT Server

    • Modify the administrator password and go to the user management page through the "users" link on the left.
    • After adding and authorizing a new user, the administrator cannot directly create an account. You must register an account on the registration page (there is a registration link in the upper-right corner of the logon page ), then, add the user to the administrator role in the user management interface.
    • If you encounter any problems, you can view the Error Log File bonobo. Git. server. errors. Log in app_data.
    • Because it is an open-source program, you can directly modify the source code if there is anything you don't agree.

Summary

Now I can say with confidence that I am a programmer and I am using git !"

Related Article

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.