From dd351567173497c4afdb23ee71b909d8264ed11c Mon Sep 17 00:00:00 2001 From: Juergen Kosel Date: Thu, 31 Jan 2019 19:18:30 +0100 Subject: Describe how to set up a push mirror repository at GitLab As requested in issue https://gitlab.com/gitlab-org/gitlab-ce/issues/57062 describe how to set up a push mirror repository at GitLab. Signed-off-by: Juergen Kosel --- doc/workflow/repository_mirroring.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/workflow/repository_mirroring.md b/doc/workflow/repository_mirroring.md index ac26aeab137..3804b576b51 100644 --- a/doc/workflow/repository_mirroring.md +++ b/doc/workflow/repository_mirroring.md @@ -88,6 +88,15 @@ The mirrored repository will be listed. For example, `https://*****:*****@github The repository will push soon. To force a push, click the appropriate button. +## Setting up a push mirror to another GitLab instance with 2FA activated + +1. Create a personal access token with scope "api". This could be done +in your profile settings +[personal_access_tokens](https://gitlab.com/profile/personal_access_tokens) +1. Fill in the **Git repository URL** field using this format: `https://oauth2@gitlab.com//.git`. +1. Fill in **Password** field with your GitLab personal access token. +1. Click the **Mirror repository** button. + ## Pulling from a remote repository **[STARTER]** > [Introduced](https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/51) in GitLab Enterprise Edition 8.2. -- cgit v1.2.1 From f98aae8403023f73fbebf1a044b4ec08eaf76140 Mon Sep 17 00:00:00 2001 From: Juergen Kosel Date: Mon, 4 Feb 2019 18:39:37 +0100 Subject: Apply merge request suggestions regarding creation of personal access token Apply of the following suggestions: - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24834#note_137860004 - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24834#note_137860005 - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24834#note_137860006 Signed-off-by: Juergen Kosel --- doc/workflow/repository_mirroring.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/workflow/repository_mirroring.md b/doc/workflow/repository_mirroring.md index 3804b576b51..0289c45de28 100644 --- a/doc/workflow/repository_mirroring.md +++ b/doc/workflow/repository_mirroring.md @@ -90,9 +90,7 @@ The repository will push soon. To force a push, click the appropriate button. ## Setting up a push mirror to another GitLab instance with 2FA activated -1. Create a personal access token with scope "api". This could be done -in your profile settings -[personal_access_tokens](https://gitlab.com/profile/personal_access_tokens) +1. Create a [personal access token](https://gitlab.com/profile/personal_access_tokens) with `API` scope. 1. Fill in the **Git repository URL** field using this format: `https://oauth2@gitlab.com//.git`. 1. Fill in **Password** field with your GitLab personal access token. 1. Click the **Mirror repository** button. -- cgit v1.2.1 From e2d07a9420bb5223cca68f99866d0ffa48af3476 Mon Sep 17 00:00:00 2001 From: Juergen Kosel Date: Wed, 6 Feb 2019 18:08:47 +0100 Subject: Apply suggested changes from code review Apply wording from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24834#note_138592349 Signed-off-by: Juergen Kosel --- doc/workflow/repository_mirroring.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/workflow/repository_mirroring.md b/doc/workflow/repository_mirroring.md index 0289c45de28..9c9797eab95 100644 --- a/doc/workflow/repository_mirroring.md +++ b/doc/workflow/repository_mirroring.md @@ -90,10 +90,11 @@ The repository will push soon. To force a push, click the appropriate button. ## Setting up a push mirror to another GitLab instance with 2FA activated -1. Create a [personal access token](https://gitlab.com/profile/personal_access_tokens) with `API` scope. -1. Fill in the **Git repository URL** field using this format: `https://oauth2@gitlab.com//.git`. -1. Fill in **Password** field with your GitLab personal access token. -1. Click the **Mirror repository** button. +1. On the destination GitLab instance, create a [personal access token](../user/profile/personal_access_tokens.md) with `API` scope. +1. On the source GitLab instance: + 1. Fill in the **Git repository URL** field using this format: `https://oauth2@gitlab.com//.git`. + 1. Fill in **Password** field with the GitLab personal access token created on the destination GitLab instance. + 1. Click the **Mirror repository** button. ## Pulling from a remote repository **[STARTER]** -- cgit v1.2.1 From e95ceeaa18cb57a0137802b78adb3d8a60ddb961 Mon Sep 17 00:00:00 2001 From: Juergen Kosel Date: Wed, 6 Feb 2019 18:18:50 +0100 Subject: Use place holder for the destination host in the push mirror URL Signed-off-by: Juergen Kosel --- doc/workflow/repository_mirroring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/workflow/repository_mirroring.md b/doc/workflow/repository_mirroring.md index 9c9797eab95..9abd8bbf173 100644 --- a/doc/workflow/repository_mirroring.md +++ b/doc/workflow/repository_mirroring.md @@ -92,7 +92,7 @@ The repository will push soon. To force a push, click the appropriate button. 1. On the destination GitLab instance, create a [personal access token](../user/profile/personal_access_tokens.md) with `API` scope. 1. On the source GitLab instance: - 1. Fill in the **Git repository URL** field using this format: `https://oauth2@gitlab.com//.git`. + 1. Fill in the **Git repository URL** field using this format: `https://oauth2@//.git`. 1. Fill in **Password** field with the GitLab personal access token created on the destination GitLab instance. 1. Click the **Mirror repository** button. -- cgit v1.2.1 From 351ad515b75804c620e9aa33382f89110125c7da Mon Sep 17 00:00:00 2001 From: Juergen Kosel Date: Wed, 6 Feb 2019 17:31:12 +0000 Subject: Update repository_mirroring.md to correct list numbering --- doc/workflow/repository_mirroring.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/workflow/repository_mirroring.md b/doc/workflow/repository_mirroring.md index 9abd8bbf173..d3541212e50 100644 --- a/doc/workflow/repository_mirroring.md +++ b/doc/workflow/repository_mirroring.md @@ -92,9 +92,9 @@ The repository will push soon. To force a push, click the appropriate button. 1. On the destination GitLab instance, create a [personal access token](../user/profile/personal_access_tokens.md) with `API` scope. 1. On the source GitLab instance: - 1. Fill in the **Git repository URL** field using this format: `https://oauth2@//.git`. - 1. Fill in **Password** field with the GitLab personal access token created on the destination GitLab instance. - 1. Click the **Mirror repository** button. + 1. Fill in the **Git repository URL** field using this format: `https://oauth2@//.git`. + 1. Fill in **Password** field with the GitLab personal access token created on the destination GitLab instance. + 1. Click the **Mirror repository** button. ## Pulling from a remote repository **[STARTER]** -- cgit v1.2.1