Wiki source code of Manage git repositories in Gitea
Last modified by DevOps-as-a-Service Operator on 2025/02/05 11:33
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | == Create a Repository == | ||
2 | |||
3 | To create an empty repository click on the + sign top of the Repositories list | ||
4 | |||
5 | [[image:1738573517902-957.png]] | ||
6 | |||
7 | In the next screen some basic information must be filled out to create an empty repository. | ||
8 | |||
9 | Make sure to select the right Project in which the repository should be created! | ||
10 | |||
11 | It is possible to initialize the empty repository. | ||
12 | |||
13 | [[image:1738573517904-112.png]] | ||
14 | |||
15 | After clicking on Create repository the new empty repository page will be opened. | ||
16 | |||
17 | == Manage Repositories using HTTPS connection == | ||
18 | |||
19 | To clone the repository, copy the git repository URL from the top right corner and use git clone command. | ||
20 | |||
21 | [[image:1738573517904-622.png]] | ||
22 | |||
23 | == Manage Repositories using SSH Connection == | ||
24 | |||
25 | To clone the repository using SSH connection, first a public key must be added to the user profile. | ||
26 | |||
27 | Navigate to the user profile settings on the top right corner. | ||
28 | |||
29 | [[image:1738573517905-414.png]] | ||
30 | |||
31 | Open SSH / GPG Keys tab on the left. | ||
32 | |||
33 | Click on Add key next to Manage SSH Keys | ||
34 | |||
35 | [[image:1738573517905-369.png]] | ||
36 | |||
37 | Copy the public key into the Content field. If your SSH Key has a comment, it will automatically fill out the Key Name field. | ||
38 | |||
39 | 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! | ||
40 | |||
41 | [[image:1738573517906-124.png]] | ||
42 | |||
43 | For SSH connection the clone command can be used like this | ||
44 | |||
45 | {{code language="none"}} | ||
46 | git clone ssh://git@CUSTOMER.devops.t-systems.net:3222/PROJECT/REPO.git | ||
47 | {{/code}} | ||
48 | |||
49 | {{info}} | ||
50 | By default, git assumes, that your private key is available in .ssh/id_rsa. | ||
51 | {{/info}} |