... | @@ -163,6 +163,55 @@ See the [git documentation for this procedure](howto/git#how-to-migrate-a-git-re |
... | @@ -163,6 +163,55 @@ See the [git documentation for this procedure](howto/git#how-to-migrate-a-git-re |
|
|
|
|
|
See the [git documentation for this procedure](howto/git#how-to-migrate-a-git-repository-from-legacy-to-gitlab).
|
|
See the [git documentation for this procedure](howto/git#how-to-migrate-a-git-repository-from-legacy-to-gitlab).
|
|
|
|
|
|
|
|
## How to mirror a Git repository from GitLab to GitHub
|
|
|
|
|
|
|
|
Some repositories are mirrored to THE [torproject organization on
|
|
|
|
GitHub](https://github.com/torproject). This section explains how that works and how to create a
|
|
|
|
new mirror from GitLab. In this example, we're going to mirror the
|
|
|
|
[tor browser manual](https://gitlab.torproject.org/tpo/web/manual).
|
|
|
|
|
|
|
|
1. head to the "Mirroring repositories" section of the
|
|
|
|
[settings/repository](https://gitlab.torproject.org/tpo/web/manual/-/settings/repository) part of the project
|
|
|
|
|
|
|
|
2. as a Git repository URL, enter:
|
|
|
|
|
|
|
|
ssh://git@github.com/torproject/tb-manual.git
|
|
|
|
|
|
|
|
3. click "detect host keys"
|
|
|
|
|
|
|
|
4. choose "SSH" as the "Authentication method"
|
|
|
|
|
|
|
|
5. don't check any of the boxes, click "Mirror repository"
|
|
|
|
|
|
|
|
6. the page will reload and show the mirror in the list of "Mirrored
|
|
|
|
repositories". click the little "paperclip" icon which says "Copy
|
|
|
|
SSH public key"
|
|
|
|
|
|
|
|
7. head over to https://github.com and authenticate with
|
|
|
|
`torproject-pusher`, password is in `external-services-git`, in
|
|
|
|
the password manager
|
|
|
|
|
|
|
|
8. go to [settings/keys](https://github.com/settings/keys) and hit [new SSH key](https://github.com/settings/ssh/new)
|
|
|
|
|
|
|
|
9. paste the public key in the bigger field, as a title, use the URL
|
|
|
|
of the repository, for example:
|
|
|
|
|
|
|
|
Title: https://gitlab.torproject.org/tpo/web/manual mirror key
|
|
|
|
Key: ssh-rsa AAAA[...]
|
|
|
|
|
|
|
|
10. click "Add SSH key"
|
|
|
|
|
|
|
|
11. to speed up the process, you can [import the repository in
|
|
|
|
GitHub](https://github.com/new/import), otherwise create a [new repository](https://github.com/new). in *both*
|
|
|
|
cases make sure you change the namespace from the default
|
|
|
|
(`torproject-pusher`, which is incorrect) to the `torproject`
|
|
|
|
namespace (which is correct)
|
|
|
|
|
|
|
|
12. then hit the "reload" button in the repositories mirror list
|
|
|
|
|
|
|
|
If there is an error, it will show up as a little red "Error"
|
|
|
|
button. Hovering your mouse over the button will show you the error.
|
|
|
|
|
|
## How to find the right emoji?
|
|
## How to find the right emoji?
|
|
|
|
|
|
It's possible to add "reaction emojis" to comments and issues and
|
|
It's possible to add "reaction emojis" to comments and issues and
|
... | | ... | |