Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up Git bare HTTP-available repository on IIS

My server already runs IIS on TCP ports 80 and 443. I want to make a centralized "push/pull" Git repository available to all my team members over the Internet.

So I should use HTTP or HTTPS.

But I cannot use Apache because of IIS already hooking up listening sockets on ports 80 and 443! Is there any way to publish a Git repository over IIS? Does Git use WebDAV?

Update. It seems that Git HTTP installation is read-only. That's sad. I intended to keep the stable branch on a build server and redeploy using a hook on push. Does anyone see a workaround besides using SVN for that branch?

like image 854
Artem Tikhomirov Avatar asked Sep 09 '08 11:09

Artem Tikhomirov


People also ask

How do I create a bare repository in git?

There are two ways to create a bare Git repo: Clone an existing repository with the git clone –bare switch. Create a new bare git repo with the git init –bare switch.

Does git work over HTTP?

Git can use four distinct protocols to transfer data: Local, HTTP, Secure Shell (SSH) and Git.


2 Answers

Bonobo Git Server

https://bonobogitserver.com/


GitAspx - By Jeremy Skinner

https://github.com/JeremySkinner/git-dot-aspx/

https://github.com/JeremySkinner/git-dot-aspx/downloads

Install Instructions

https://www.jeremyskinner.co.uk/2010/10/19/gitaspx-0-3-available/


Git Web

https://gitweb.codeplex.com/


WebGitNET

https://github.com/otac0n/WebGitNet


Alternatively ... (non-IIS, but highly recommend, free and open-source)

Gitea (fork of Gogs): https://gitea.io

Gogs: https://gogs.io

SCM Manager allows you to easily set up revision control endpoints for Git, Hg, and SVN under the same hosting process. HTTP/HTTPS is supported along with built-in user authentication.

https://www.scm-manager.org
https://bitbucket.org/sdorra/scm-manager/

like image 104
Brian Chavez Avatar answered Oct 01 '22 21:10

Brian Chavez


Git supposedly supports webdav, and should work with any webdav server. However, it's really slow compared to the native git protocols.

http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt

like image 33
apenwarr Avatar answered Oct 01 '22 23:10

apenwarr