Manage git repositories in Gitea

Last modified by DevOps-as-a-Service Operator on 2025/02/05 11:33

Create a Repository

To create an empty repository click on the + sign top of the Repositories list

1738573517902-957.png

In the next screen some basic information must be filled out to create an empty repository.

Make sure to select the right Project in which the repository should be created!

It is possible to initialize the empty repository.

1738573517904-112.png

After clicking on Create repository the new empty repository page will be opened.

Manage Repositories using HTTPS connection

To clone the repository, copy the git repository URL from the top right corner and use git clone command.

1738573517904-622.png

Manage Repositories using SSH Connection

To clone the repository using SSH connection, first a public key must be added to the user profile.

Navigate to the user profile settings on the top right corner.

1738573517905-414.png

Open SSH / GPG Keys tab on the left.

Click on Add key next to Manage SSH Keys

1738573517905-369.png

Copy the public key into the Content field. If your SSH Key has a comment, it will automatically fill out the Key Name field.

After your SSH Key was added you can copy the git repository URL from the top right corner of the repository page. Make sure to select SSH!

1738573517906-124.png

For SSH connection the clone command can be used like this

git clone ssh://git@CUSTOMER.devops.t-systems.net:3222/PROJECT/REPO.git
Information

By default, git assumes, that your private key is available in .ssh/id_rsa.