I have found articles regarding how to install Git on a Windows server and use SSH (such as CopSSH) for authentication. I am a little surprised by this as I remember reading that one should not use a Windows machine for a shared Git repository (sorry don't remember where I read that). My question is can I setup Git to use Windows Authentication rather than SSH? This would be considerably easier for me to administer. Since the machine would be administered by me in my "spare time", easier is better.
-
I am looking into the "new" Smart Http option with Git. – Pat O Dec 03 '10 at 14:46
7 Answers
You can simply use a shared folder as git repository inside your domain and administer it with your domain users.
c:/> git clone \\myserver\repository\myfolder

- 3,381
- 1
- 20
- 20
-
3I would expect this to offer poor performance, especially over WAN links. Still it would work. – Pat O Dec 03 '10 at 14:45
-
@Pat O You're wrong, this is the setup I have and it has correct performance (7 MB/s on a 100Mbs LAN) – CharlesB Apr 18 '11 at 12:21
-
Just done this and it is really slow over WAN, acceptable over LAN. To make it quicker we have to run git gc on regular basis. – Cosmin Onea Sep 24 '12 at 16:35
-
And different users using this repository will have their checkins identified by their AD-user? – Klas Mellbourn Feb 22 '13 at 13:01
-
Git Credential Manager for Windows is officially supported by Microsoft to use Windows authentication to authenticate yourself to git.
https://github.com/Microsoft/Git-Credential-Manager-for-Windows

- 23,586
- 22
- 91
- 133
You could use Redmine to control user access to Git repositories. In turn, Redmine natively supports authentication with Active Directory. Thus, you have Active Directory authentication for your Git server. We use this setup without problems.
Just a remark in case you don't want to use Redmine. Redmine is in my opinion the best open source project management application out there, and it's really worth using even if you don't need the AD authentication.

- 6,572
- 4
- 27
- 28
You could use scm-manager, which has an active directory plugin.

- 2,382
- 18
- 16
-
1Have you actually used scm-manager? It has some issues. First, the plugins don't seem to behave in a consistent manner. Second, the active directory plugin is a mockup. It doesn't actually provide functionality yet. The ldap plugin is closer to working, but again, it's functionality is not yet implemented or there is a problem with plugin management. Bottom line: it is not yet ready for prime-time unless you feel like fixing someone else's code. – Jan 28 '12 at 01:22
You can also host the repo with IIS over HTTPS and then protect each project subfolder with Windows user credentials.

- 7,992
- 10
- 51
- 77
You can use Windows Credential Store for Git https://gitcredentialstore.codeplex.com/
It saves your Git credentials in your PC's Windows Credential Store, keeping it safe in a secure location. And it's really easy to use :)

- 23,586
- 22
- 91
- 133
-
2Project is no longer maintained but it has been replaced with https://github.com/Microsoft/Git-Credential-Manager-for-Windows – Zitrax Nov 20 '15 at 08:57
Gitlab Enterprise claims to support Active Directory. I haven't demo'd it yet, but I'm considering it as an option as we migrate a svn server that our organization wants to have AD backing it.

- 101
- 8