A
A
amaranth2012-02-20 10:01:12
git
amaranth, 2012-02-20 10:01:12

How to set up a Git server with a web face and SSH on Windows?

Good day!

Dear Khabrovites, share your experience of installing and configuring Git under Windows (2003 or 2008). I would also like to have a convenient web face, in which it would be convenient to view history. I will also be glad to hear options for setting access rights using Windows Active Directory and, of course, access via SSH.

Thank you.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
D
Dmitry Shvalyov, 2012-02-20
@dshster

I installed without cygwin, only msysgit (“Run from the Windows command prompt”):
code.google.com/p/msysgit/downloads/list We
set the global settings for correct operation in the Windows command line:

core.quotepath false
i18n.commitencoding cp1251
i18n.logoutputencoding cp866
core.pager cat|more.com
core.editor notepad.exe

Set the %HOME% variable to a folder that does not contain spaces or Cyrillic characters.
But for SSH keys you have to get a tambourine!
Key generation:
ssh-keygen -t rsa -C "<email>"

ssh-keygen comes with msysgit, the main thing is to set up %patch% if the installer didn't do it.
Copy the keys to the folder %home%\.ssh\
Run the command
ssh agent cmd.exe

a command prompt with ssh support will open. Adding our key to the agent
ssh-add %home%/.ssh/<private_key_name>

The agent will ask for the key password. Now you can work with git on the command line as usual.
Copy the public key to github or bitbucket beforehand (who works with what).
The local web muzzle is invoked via
git instaweb --httpd=webrick
from the repository's working copy folder (but don't kick too hard - I haven't tried running it on Windows)
In general, maybe this will put you on the right track for the first point of the question. I won't say anything about AD.

S
shadowalone, 2012-02-20
@shadowalone

cygwin.com/

S
Sergey78, 2012-02-20
@Sergey78

Virtual machine with linux? 2008 has Hyper-V. And transfer, if anything, convenient.

E
ergil, 2012-02-20
@ergil

Have you tried autogenous tonsils through the anus to remove?
git is a version control system written by the author of the Linux kernel for unbelievable Linux.
Use Windows for what it's made for, and Linux for what it's for, and you won't need any tambourines.

A
ASD2003ru, 2013-04-03
@ASD2003ru

Maybe so? www.scm-manager.org/

V
vadzimka, 2015-09-24
@vadzimka


Easy installation of
a GIT server on
Windows
But the comments in the article may come in handy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question