Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setup Git-server on windows computer [closed]

Tags:

git

How can I setup GIT server On-Premise on windows machine, so it is accessible privately, only from local network. Note that, I want to run GIT as server, not as Network Share.

Article in GIT documentation shows how to setup server only on Linux machines.

I have tried GitStack but I wasn't able to put it to work (possibly due to wrong configurations).

like image 613
Batto Avatar asked May 18 '15 16:05

Batto


People also ask

Can you run a Git server on Windows?

You need to download and install:Git for Windows, selecting the "Run Git and included Unix tools from the Windows Command Prompt" when prompted. This option will install a bin folder in Program Files\git that will be placed into your path thus taking possibly taking precedence over other tools.

Is it possible to set up a Git server on your own computer?

Create a “git” user and group. Upload a public SSH key to the “git” user which will allow you (or others) to log in as the “git” user. Create a bare repository on the server. Add the remote repository (the one just created on the server) to a local Git project.

Does Git need to be installed on server?

No, you're correct when you're saying you can serve a git repository without have git installed on your server.


2 Answers

I use Bonobo git server on windows to serve my repositories via https using IIS as the web server. It works quite well but has some quirks when you want to have active directory (windows) authentication (you essentially need 2 Bonobo instances which I somehow didn't manage to get working). I access my Bonobo git repositories from Visual Studio, TortoiseGit and the git console, it just works as expected.

like image 83
Dirk Trilsbeek Avatar answered Sep 21 '22 00:09

Dirk Trilsbeek


So me and a friend of mine wanted to start programing

I'd recommend you to spend your effort and motivation on programming. Don't bother creating your own private remote repository, because you don't need one yet:

  1. Your local folder under git version control is already a git repository.
  2. If you want to collaborate:
    • GitHub is most popular for opensource projects, and it supports private repositories (up to 3 users).
    • GitLab allows private repositories for teams of unlimited size.
    • Bitbucket also allows private repositories, available for teams of up to 5 users.

There's a great collection of git references here: Git for beginners: The definitive practical guide

like image 24
Nick Volynkin Avatar answered Sep 17 '22 00:09

Nick Volynkin