How to set up a local Git server on Windows in 10 minutes using Gitea
A quick guide on how to set up a Git server on Windows for a game development project with a few clicks. We will use Gitea, which is a self hosted GitHub alternative.
Matthäus Niedoba
May 2, 2024
7
min read
Content
In this guide, we will set up a local Git server on a Windows machine using Gitea. Gitea is an open source alternative to GitHub and can be hosted on different environments. If you want to set up a Gitea server on a NAS using Docker, take a look at this guide. We also have a guide how to set up Gitea on a cloud provider.
Our use case is an Unreal Engine project that needs to be done in a tight network setup with no need for outside access. The Windows machine needs enough disk space to hold the entire version history of the project. It also needs to be accessible on the local network.
Setting up Gitea
This process is straightforward and will only take you a few minutes, since the default configuration of Gitea is good enough for our case.
How do I know my IP address?
On Windows, you have to follow these 3 steps:
Press the Win Key and in the search bar, type in "CMD" and press enter. This will open the Windows command line
In the CMD, type in "ipconfig" and press Enter
Search for your ethernet adapter entry and your "IPv4 Address". It should be something like "192.168.0.11"
Add other users to your Git server
In this step we will add user accounts for our collaborators.
Create a repository and add members
Now, we will create a new repository and add our newly created user to give her access to the repository.
Pushing our project to the Git server using a Git client
In this example we will use Anchorpoint, but you can use any Git client of your choice.
That's all you need to do, to collaborate on a project using a local Git server on Windows. If your team member will open up Anchorpoint, they should see a project invite. The first thing they need to do is authorize Anchorpoint with Gitea, just like you did. After that they can download all files and push new files to Gitea. Note that this configuration only works for internal use. To make your Git server available to the Internet, you need to take a few more steps.
Anchorpoint has also an integration to Gitea, which allows you to create repositories and add members directly from Anchorpoint. All the changes will be automatically reflected on Gitea.