Msysgit
Tortoisegit
Wampserver2
Cd c: \ Program Files \ git \ libexec \ Git-core copy C: \ Program Files \ git \ bin \ libiconv-2.dll git-http-backend.exe
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>
SwitchBin directory under the Apache installation directory
Htpasswd-cmb e:/svnserver/htpassword mythma 123456
Cd e: \ gitservergit init -- bare mythma. gitgit Update-server-Info
Use tortoisegit clone
Git add.
Git commit-M "add"
Git push origin master