In this tutorial, I’ll show you how to create a git server in your local network.
You might thinking why would I? Usually when we’re working git repository, we go to online services like GitHub. We create private project for privacy. But that’s not enought for all cases.
You maybe need a git repository to store password. Puting it in a cloud service is not cool.
There is a very simple way to setup your own git server.
I assume you understand how ssh work.
Let’s say you have raspberry pi at home. First we enter the server remotely via ssh.
Let’s create our project under
Change your working directory there.
Create a bare git repository.
Now get back to your local machine. Open a terminal and clone this newly created git repository.
Then do whatever you do with that git repository. That’s it.