<p>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.</p>

<p>So I should use HTTP or HTTPS.</p>

<p>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 <em>IIS</em>? Does Git use WebDAV?</p>

<p><strong>Update.</strong> 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?</p>

[{'answer_id': 75539, 'author': 'apenwarr', 'author_id': 42219, 'author_profile': 'https://Stackoverflow.com/users/42219', 'pm_score': 3, 'selected': False, 'text': '<p>Git supposedly supports webdav, and should work with any webdav server.  However, it\'s really slow compared to the native git protocols.</p>\n\n<p><a href="http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt" rel="noreferrer">http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt</a></p>\n'}, {'answer_id': 1595415, 'author': 'Garrett Serack', 'author_id': 181469, 'author_profile': 'https://Stackoverflow.com/users/181469', 'pm_score': 2, 'selected': False, 'text': '<p>Today Git ain\'t too bad on Windows these days.</p>\n\n<p>And if you want to use SVN on port 443 and/or 80 when IIS is already using it, try the tool at <a href="http://gstoolkit.codeplex.com/wikipage?title=SvnReverseProxy&amp;ProjectName=gstoolkit" rel="nofollow noreferrer">http://gstoolkit.codeplex.com/wikipage?title=SvnReverseProxy&amp;ProjectName=gstoolkit</a> which is a reverse proxy that allows IIS to transparently pass thru SVN to a back-end VisualSVN server (running on the same machine on port 8080).</p>\n\n<p>I\'m still trying to get WebDAV and Git working on Windows though. (either by Apache\'s or IIS\'s WebDAV).</p>\n'}, {'answer_id': 2481135, 'author': 'louis', 'author_id': 297781, 'author_profile': 'https://Stackoverflow.com/users/297781', 'pm_score': 1, 'selected': False, 'text': '<p>There is a way to setup Git with MSysGit without cygwin.\n<a href="http://java2cs2.blogspot.com/2010/03/setup-git-server-on-windows-machine.html" rel="nofollow noreferrer">http://java2cs2.blogspot.com/2010/03/setup-git-server-on-windows-machine.html</a></p>\n'}, {'answer_id': 4015421, 'author': 'Brian Chavez', 'author_id': 9275, 'author_profile': 'https://Stackoverflow.com/users/9275', 'pm_score': 6, 'selected': True, 'text': '<p><strong>Bonobo Git Server</strong></p>\n\n<p><a href="https://bonobogitserver.com/" rel="noreferrer">https://bonobogitserver.com/</a></p>\n\n<hr>\n\n<p><strong>GitAspx</strong> - By Jeremy Skinner</p>\n\n<p><a href="https://github.com/JeremySkinner/git-dot-aspx/" rel="noreferrer">https://github.com/JeremySkinner/git-dot-aspx/</a></p>\n\n<p><a href="https://github.com/JeremySkinner/git-dot-aspx/downloads" rel="noreferrer">https://github.com/JeremySkinner/git-dot-aspx/downloads</a></p>\n\n<p><em>Install Instructions</em></p>\n\n<p><a href="https://www.jeremyskinner.co.uk/2010/10/19/gitaspx-0-3-available/" rel="noreferrer">https://www.jeremyskinner.co.uk/2010/10/19/gitaspx-0-3-available/</a></p>\n\n<hr>\n\n<p><strong>Git Web</strong></p>\n\n<p><a href="https://gitweb.codeplex.com/" rel="noreferrer">https://gitweb.codeplex.com/</a></p>\n\n<hr>\n\n<p><strong>WebGitNET</strong></p>\n\n<p><a href="https://github.com/otac0n/WebGitNet" rel="noreferrer">https://github.com/otac0n/WebGitNet</a></p>\n\n<hr>\n\n<p><strong><em>Alternatively ...</em></strong> (non-IIS, but highly recommend, free and open-source)</p>\n\n<p><strong>Gitea</strong> (fork of Gogs): <a href="https://gitea.io" rel="noreferrer">https://gitea.io</a></p>\n\n<p><strong>Gogs</strong>: <a href="https://gogs.io" rel="noreferrer">https://gogs.io</a></p>\n\n<p><strong>SCM Manager</strong> allows you to easily set up revision control endpoints for <strong>Git</strong>, <strong>Hg</strong>, and <strong>SVN</strong> under the same hosting process. HTTP/HTTPS is supported along with built-in user authentication.</p>\n\n<p><a href="https://www.scm-manager.org" rel="noreferrer">https://www.scm-manager.org</a><br>\n<a href="https://bitbucket.org/sdorra/scm-manager/" rel="noreferrer">https://bitbucket.org/sdorra/scm-manager/</a></p>\n'}, {'answer_id': 12271151, 'author': 'Yaroslav', 'author_id': 807908, 'author_profile': 'https://Stackoverflow.com/users/807908', 'pm_score': 0, 'selected': False, 'text': '<p>Try this instruction that uses SCM-Manager and IIS: <a href="http://www.helicontech.com/articles/hosting-git-svn-and-hg-mercurial-repositories-on-windows-with-iis/" rel="nofollow">Hosting Git, SVN and Hg (Mercurial) repositories on Windows with IIS</a></p>\n'}, {'answer_id': 44209364, 'author': 'Mladen Mihajlovic', 'author_id': 11421, 'author_profile': 'https://Stackoverflow.com/users/11421', 'pm_score': 0, 'selected': False, 'text': '<p><a href="https://github.com/projectkudu/kudu" rel="nofollow noreferrer">https://github.com/projectkudu/kudu</a> is the engine behind deployments on Azure. This might help for anybody still asking this question...</p>\n'}, {'answer_id': 73271799, 'author': 'Luke S', 'author_id': 19371365, 'author_profile': 'https://Stackoverflow.com/users/19371365', 'pm_score': 0, 'selected': False, 'text': '<p>It\'s possible to run a Git <a href="https://git-scm.com/book/en/v2/Git-on-the-Server-Smart-HTTP" rel="nofollow noreferrer">Smart HTTP</a> server (supporting both push and pull from remote clients over HTTP) on Windows without any extra dependencies besides IIS and Git.</p>\n<p>When you install Git, it includes an executable called <code>git-http-backend.exe</code> which implements the Smart HTTP protocol which is designed to run through <a href="https://en.wikipedia.org/wiki/Common_Gateway_Interface" rel="nofollow noreferrer">CGI</a> on any web server.</p>\n<p>You can secure the Git server using HTTP Basic Authentication and HTTPS. You can use Windows accounts and file/folder permissions to control access rights to individual repositories.</p>\n<p>Full detailed instructions are here: <a href="https://smalltech.com.au/blog/how-to-run-a-git-server-on-windows-with-iis" rel="nofollow noreferrer">How to run a Git server on Windows with IIS</a>.</p>\n'}]
['https://Stackoverflow.com/questions/51619', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2313/']