... | ... | @@ -76,6 +76,8 @@ cd <gitlab_project> |
|
|
|
|
|
#### From Git
|
|
|
|
|
|
##### Mirror method
|
|
|
|
|
|
A convenient way to migrate everything (all branches, all tags) in a single operation is to use a mirror checkout:
|
|
|
|
|
|
```
|
... | ... | @@ -95,6 +97,10 @@ cd <gitlab_project> |
|
|
# check that all is correct
|
|
|
```
|
|
|
|
|
|
##### Import method
|
|
|
|
|
|
An alternative method is to directly choose the "Import project" tab when creating the project in gitlab, and then choose "Git repo by URL". Enter the URL of the project's git repository on the forge, such as: https://scm.gforge.inria.fr/anonscm/git/<forge_project>/<forge_project>.git (anonymous access) or https://<forge_user>@scm.gforge.inria.fr/authscm/<forge_user>/git/<forge_project>/<forge_project>.git (https developer access). Anonymous access is only available for public repositories. For https developer access you'll need to provide forge username and passsword for gitlab to be able to retrieve and import the project from the forge. It is not possible to use a git+ssh URL scheme for this method.
|
|
|
|
|
|
#### Filtering history
|
|
|
|
|
|
If needed, you can filter out part of the history before pushing it to the new gitlab git repository, with tools such as [git-filter-repo](https://github.com/newren/git-filter-repo), [bfg-ish](https://github.com/newren/git-filter-repo/blob/master/contrib/filter-repo-demos/bfg-ish), [BFG Repo Cleaner](https://rtyley.github.io/bfg-repo-cleaner/).
|
... | ... | |