Simple tutorial on configuring git server in Windows

Source: Internet
Author: User
    • Download

Msysgit

Tortoisegit

Wampserver2

    • Configure git

 
Cd c: \ Program Files \ git \ libexec \ Git-core copy C: \ Program Files \ git \ bin \ libiconv-2.dll git-http-backend.exe

    • Configure Apache

Modify httpd. conf:

<Directory/> options followsymlinksallowoverride noneorder deny, allowallow from all </directory>

Append at the end of the httpd. conf file:

# Set this to the root folder containing your git repositories. setenv git_project_root E:/svnserver # set this to export all projects by default (by default, # git will only publish those repositories that contain a # file named "Git-Daemon-export-OK" setenv git_http_export_all 1 # route specific URLs matching this regular expression to the GIT HTTP server. scriptaliasmatch \ "(? X) ^/git /(. */(Head | \ info/refs | \ objects/(info/[^/] + | \ [0-9a-f] {2}/[0-9a-f] {38} | \ pack/ pack-[0-9a-f] {40 }\. (pack | idx) | \ Git-(upload | receive)-pack) $ "\" C: /program files/git/libexec/Git-core/git-http-backend.exe/$1 & quot; <location/> authtype basicauthname & quot; git serverauthuserfile & quot; E: /svnserver/htpassword "require valid-user </location>

    • Add User

SwitchBin directory under the Apache installation directory

Htpasswd-cmb e:/svnserver/htpassword mythma 123456

    • CreateCodeWarehouse

Cd e: \ gitservergit init -- bare mythma. gitgit Update-server-Info


    • Client

Use tortoisegit clone

Git add.

Git commit-M "add"

Git push origin master

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.