# Code Repository - Gitea

Gitea is your code repository — think GitHub, but hosted for you. You reach it at [git.solo.imagit.eu](https://git.solo.imagit.eu), which is also linked from your dashboard.

## Create a repository (web UI)

To quickly create a repository, press the **+** and choose **New Repository**. Set the options you want and press **Create Repository**.

[![Creating a new repository in Gitea](https://docs.imagit.eu/uploads/images/gallery/2026-04/scaled-1680-/3rbimage.png)](https://docs.imagit.eu/uploads/images/gallery/2026-04/3rbimage.png)

Once the repository has been created, the quick guide gives you a URL you can use to clone it locally.

[![The clone URL shown after creating a repository](https://docs.imagit.eu/uploads/images/gallery/2026-04/scaled-1680-/K6Bimage.png)](https://docs.imagit.eu/uploads/images/gallery/2026-04/K6Bimage.png)

## Create an access token

> **Authentication over SSH using SSH keys is currently not available.** Only authentication over HTTPS works.

To authenticate over HTTPS — required when 2FA is enabled — you need an access token. To create one, open **Settings** under your profile and go to **Applications**. Give the token a name. In this example I enabled read and write permissions for the repositories owned by this account, as well as read and write for packages, so images can be pushed and pulled.

[![Configuring an access token in Gitea](https://docs.imagit.eu/uploads/images/gallery/2026-04/scaled-1680-/image.png)](https://docs.imagit.eu/uploads/images/gallery/2026-04/image.png)

Click **Generate Token**. **This token will only be shown once.** Make sure to store it in your favourite password manager ;)

[![The generated access token](https://docs.imagit.eu/uploads/images/gallery/2026-04/scaled-1680-/lOuimage.png)](https://docs.imagit.eu/uploads/images/gallery/2026-04/lOuimage.png)

## Use the repository with an access token (IDE)

To clone your new repository and work on it locally, press **Code** and copy the URL while in the repository.

[![Copying the repository clone URL](https://docs.imagit.eu/uploads/images/gallery/2026-04/scaled-1680-/iGrimage.png)](https://docs.imagit.eu/uploads/images/gallery/2026-04/iGrimage.png)

Clone the repository to wherever you prefer.

Because this is a public repository, you will not be prompted for credentials when cloning or pulling. When pushing, you will be prompted for credentials — enter your username and the token you just created as the password.

[![Entering the username and access token when pushing](https://docs.imagit.eu/uploads/images/gallery/2026-04/scaled-1680-/mqjimage.png)](https://docs.imagit.eu/uploads/images/gallery/2026-04/mqjimage.png)

## Push and pull (container) images

> For instructions on how to handle all kinds of packages in Gitea, see the [Gitea official documentation](https://docs.gitea.com/usage/packages).

The following push command pushes the image to the user's packages. You can also push to `URL/<USERNAME>/<REPOSITORY>`.

[![Pushing a container image to Gitea](https://docs.imagit.eu/uploads/images/gallery/2026-04/scaled-1680-/Ae5image.png)](https://docs.imagit.eu/uploads/images/gallery/2026-04/Ae5image.png)

After pushing, your image appears under **Packages** in your repository. This screen also shows how to pull the image again (after authenticating with `docker`/`podman login`).

[![The pushed image shown under Packages](https://docs.imagit.eu/uploads/images/gallery/2026-04/scaled-1680-/epDimage.png)](https://docs.imagit.eu/uploads/images/gallery/2026-04/epDimage.png)

## Build pipelines

> The ability to run pipelines (Gitea Runners) for the shared platform will be made available at a later stage. Until then, you can bring your own runner (BYOR).