Forked from
R3 / howto-cards LEGACY VERSION
1338 commits behind the upstream repository.
-
Laurent Heirendt authoredLaurent Heirendt authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
mirror-fork.md 1.47 KiB
layout: page
permalink: /external/contribute/mirror-fork/
shortcut: contribute:mirror-fork
redirect_from:
- /cards/contribute:mirror-fork
- /external/cards/contribute:mirror-fork
How to mirror your fork automatically
In order to keep your fork up-to-date automatically with the main (also called upstream
) repository,
you should follow the follow simple steps.
- Go to
Settings > Repository
- Expand the section on
Mirroring repositories
- In the field
Git repository URL
, enter the SSH clone address from the main repository. In case of this repository, the address isssh://git@git-r3lab-server.uni.lu:8022/R3/howto-cards.git
- Select
Mirror Direction
asPull
-
Authentication method
should be selected asSSH public key
- Then, click on the green button
Mirror repository
You will see an entry in the table below the green button. Often, there is an error appearing. Now, in order to be able to perform the mirror, you need to set the SSH key.
-
Copy the SSH public key by clicking on the copy button (next to the sync button) located next to the red paper bin.
-
Then, browse to your profile picture (top right) and click on
Settings
-
On the left of the page, click on
SSH keys
-
Paste the key (using CTRL+V or CMD+V) into the SSH field
-
Click on
Add key
Now, the synchronization of the fork should perform successfully. You can click on the sync button or wait a few minutes.