This project is read-only.


For those who have interests in a Smart-HTTP Git server on IIS, the project provides an ASP.NET HttpHandler that let you run Smart HTTP Git on IIS. It is inspired by Grack, a Ruby Rack based application for Smart HTTP Git and, a python implementation of Smart HTTP Git.

The ASP.HET handler, GitHandler, is lightweight and can be used in any ASP.NET web applications and web sites. Another reusable piece is the WCF data service that exposes Git repository through WCF data services / OData protocol. The OData feed can be used to plot the commit graph on HTML5 canvas.


  • Create remote repositories
  • Clone, pull and push through IIS
  • Leverage ASP.NET Membership for Authentication and Authorization
  • Expose Git repository through OData protocol
  • Two Samples: Web Forms Application and ASP.NET WebPages (with Razor Syntax) Web Site


Sample Web Application Screenshots


Create Repo.png

Git Push.png

Sample Web Site Screenshots



To Use In Your Own projects

Right click your web application / web site project in Visual Studio 2010, select menu Add Library Reference ..., search for git ...

add lib reference.png

Once installed, the GitTools.dll will be added to bin folder. GitHttpHandler will be added to web.config.

Change Logs

  • Build as NuGet Package

  • CMS spikes in the web site sample. Release cancelled.

  • Push authentication against ASP.NET membership.
  • New ASP.NET web pages sample web site (using Razor Syntax).
  • HTML 5 view of repository using the odata services.

  • Enable trace (please turn it off in web.config for production use).

  • Git Smart HTTP spike.
  • WCF Data Services to expose Git repository information.
  • Sample ASP.NET web forms application

Source Code

  • git://

Last edited May 7, 2011 at 1:30 PM by yysun, version 10