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).
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.
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.
No, you're correct when you're saying you can serve a git repository without have git installed on your server.
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.
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:
There's a great collection of git references here: Git for beginners: The definitive practical guide
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With