... | @@ -54,6 +54,8 @@ Get the last version of the development tree (git or subversion), and import thi |
... | @@ -54,6 +54,8 @@ Get the last version of the development tree (git or subversion), and import thi |
|
|
|
|
|
#### From Subversion
|
|
#### From Subversion
|
|
|
|
|
|
|
|
##### Command-line git-svn method
|
|
|
|
|
|
Checkout the subversion repository with git-svn (https://git-scm.com/docs/git-svn). It creates a git repository from the subversion repository (with all the history). You can then add your gitlab project as a git remote and push to that project:
|
|
Checkout the subversion repository with git-svn (https://git-scm.com/docs/git-svn). It creates a git repository from the subversion repository (with all the history). You can then add your gitlab project as a git remote and push to that project:
|
|
|
|
|
|
```
|
|
```
|
... | @@ -74,9 +76,13 @@ cd <gitlab_project> |
... | @@ -74,9 +76,13 @@ cd <gitlab_project> |
|
# check that all is correct
|
|
# check that all is correct
|
|
```
|
|
```
|
|
|
|
|
|
|
|
##### Alternative methods
|
|
|
|
|
|
|
|
Other methods are described here: https://gitlab.inria.fr/help/user/project/import/svn
|
|
|
|
|
|
#### From Git
|
|
#### From Git
|
|
|
|
|
|
##### Mirror method
|
|
##### Command-line mirror method
|
|
|
|
|
|
A convenient way to migrate everything (all branches, all tags) in a single operation is to use a mirror checkout:
|
|
A convenient way to migrate everything (all branches, all tags) in a single operation is to use a mirror checkout:
|
|
|
|
|
... | @@ -97,7 +103,7 @@ cd <gitlab_project> |
... | @@ -97,7 +103,7 @@ cd <gitlab_project> |
|
# check that all is correct
|
|
# check that all is correct
|
|
```
|
|
```
|
|
|
|
|
|
##### Import method
|
|
##### Gitlab 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.
|
|
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.
|
|
|
|
|
... | | ... | |