How to Install Gitea on Windows 11

Gitea is an open-source, git-based platform for managing software projects. This tutorial will guide you through the process of installing Gitea on Windows 11.

Prerequisites

Step 1: Download Gitea

Go to https://gitea.io/en-us/downloads/ and download the latest Windows binary release of Gitea. Extract the downloaded file to a location of your choice.

Step 2: Setup Gitea Environment Variables

To run Gitea, you have to set up some environment variables. Here are the steps:

  1. Open the Start menu and search for "Environment Variables".
  2. Click on "Edit the system environment variables".
  3. In the System Properties window, click on the "Environment Variables" button.
  4. Under "System variables", click on the "New" button.
  5. Enter "GITEA_ROOT" as the variable name and the path to the Gitea installation directory as the variable value.
  6. Click on the "OK" button to save the changes.

Step 3: Initialize Gitea

In this step, we'll initialize Gitea and set up the database. Here are the steps:

  1. Open the command prompt with administrative access.
  2. Navigate to the Gitea installation directory using the cd command.
  3. Run the following command to initialize Gitea: gitea.exe web
  4. Gitea will prompt you to set up the database. Select "SQLite3" as the database and fill in the required database details.
  5. Once the database is set up, Gitea will start running.

Step 4: Accessing Gitea Web Interface

To access the Gitea web interface, open your web browser and navigate to http://localhost:3000. You should see the Gitea login page.

Conclusion

At this point, you should have successfully installed Gitea on your Windows 11 machine. Congratulations!

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!