Moving from SVN to GIT, the first thing that I wanted to do was to set up a GIT server on my Windows Server 2008 R2 machine. I chose to use
Bonobo GIT which is currently a free and open-source project. Given that
Bonobo GIT's installation guide worked well generally, I will only highlight the missing bits in the tutorial, i.e. things which I had to do differently to get things working.
Prerequisites
Before deploying Bonobo GIT Server, the following three components are required:
- IIS 7
- Microsoft .NET Framework 4.6. I did not have to uninstall my existing .NET framework 3.5.1. On the other hand, .NET Framework 4.5 complained that it or a later update was already installed (even though it was not). Version 4.6 worked fine.
- ASP.NET MVC 4. After installation, open a command prompt window as an administrator to run the following command: %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir
Changing ports
If you need to the default IIS web site to listen on a port other than 80:
- Right-click on "Default Web Site".
- Choose "Edit Bindings".
- Click on the row with http type.
- Click on the "Edit..." button.
- Enter your preferred port number, e.g. 8080.
Installation
- Unzip the downloaded Bonobo GIT Server file into your IIS directory, e.g. C:\inetpub\wwwroot.
- Give your IIS_IUSRS group permissions to Modify and Write to C:\inetpub\wwwroot\Bonobo.Git.Server\App_Data folder.
- Convert Bonobo.Git.Server to Application:
- Set the Application Pool to ASP.NET v4.0:

- Click on the Test Settings button. You will see the following error:

- That error message can be ignored. If you really want to remove that error, you can create a user in the Administrator group and connect as that user. However, I avoided that because it grants unnecessary administrative access.

- Instead, go to IIS-Authentication:

- Double-click on Authentication:
- Click the "Edit ..." link on the right:
- Choose Application pool identity and click OK.
- Test your deployed GIT server by visiting its home page, e.g. http://localhost/Bonobo.Git.Server/. You may need to append the port number, e.g. http://localhost:8080/Bonobo.Git.Server/
- Change your admin password. The default username and password are both admin.