Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fbce27d1
Commit
fbce27d1
authored
Jun 27, 2017
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update repo mirroring docs
parent
8bb39137
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
21 deletions
+20
-21
doc/workflow/repository_mirroring.md
doc/workflow/repository_mirroring.md
+20
-21
No files found.
doc/workflow/repository_mirroring.md
View file @
fbce27d1
...
@@ -2,37 +2,25 @@
...
@@ -2,37 +2,25 @@
>[Introduced][ee-51] in GitLab Enterprise Edition 8.2.
>[Introduced][ee-51] in GitLab Enterprise Edition 8.2.
## Overview
Repository Mirroring is a way to mirror repositories from external sources.
Repository Mirroring is a way to mirror repositories from external sources.
It's going to mirror all branches, tags, and commits that you have
It can be used to mirror all branches, tags, and commits that you have
in your project within another Git platform.
in your repository.
It's very useful when, for some reason, you cannot simply remove a project
from another source.
Your mirror at GitLab will be updated automatically once an hour. You can manually
Your mirror at GitLab will be updated automatically once an hour, but you can
update it whenever you need.
also manually update it whenever you need.
## Use-cases
-
You migrated to GitLab but still needs to keep you project in another source.
## Overview
You simple set it up to mirror to GitLab and all the essential history of
commits, tags and branches will be reproduced in your GitLab EE instance.
-
You have old projects in another source that you don't use actively anymore.
You create a mirror to your active GitLab EE instance to be able to be aware of
any eventual changes in your project.
## Description
Repository mirroring is very useful when, for some reason, you must use a
project from another source.
There are two kinds of repository mirroring features supported by GitLab:
There are two kinds of repository mirroring features supported by GitLab:
**push**
and
**pull**
. The
**push**
method mirrors the repository in GitLab
**push**
and
**pull**
. The
**push**
method mirrors the repository in GitLab
to another location, whereas the
**pull**
method mirrors an external repository
to another location, whereas the
**pull**
method mirrors an external repository
in one in GitLab.
in one in GitLab.
By default mirror repositories are updated every hour, and all new branches, tags, and
By default, mirror repositories are updated every hour, and all new branches,
commits will be visible in the project's activity feed.
tags, and commits will be visible in the project's activity feed.
Users with at least
[
developer access
][
perms
]
to the project can also force an
Users with at least
[
developer access
][
perms
]
to the project can also force an
immediate update with a click of a button.
immediate update with a click of a button.
...
@@ -48,6 +36,17 @@ A few things/limitations to consider:
...
@@ -48,6 +36,17 @@ A few things/limitations to consider:
-
The Git LFS objects will not be synced. You'll need to push/pull them
-
The Git LFS objects will not be synced. You'll need to push/pull them
manually.
manually.
## Use-cases
-
You migrated to GitLab but still need to keep you project in another source.
In that case, you can simply set it up to mirror to GitLab (pull) and all the
essential history of commits, tags and branches will be available in your
GitLab instance.
-
You have old projects in another source that you don't use actively anymore,
but don't want to remove for archiving purposes. In that case, you can create
a push mirror so that your active GitLab repository can push its changes to the
old location.
## Pulling from a remote repository
## Pulling from a remote repository
You can set up a repository to automatically have its branches, tags, and commits
You can set up a repository to automatically have its branches, tags, and commits
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment