# Migrating Personal Projects to git.nrw

> How to import your personal or single group projects to git.nrw via Repository URL

## Step 1: Prerequisites

This short guide describes a possible way to import your GitLab private (or a single group-) project to git.nrw via Repository URL import. Be aware that there are more ways possible to import projects into git.nrw: [GitLab Import](https://docs.gitlab.com/user/import/). You can't import GitLab issues, Commit hisrory and merge requests this way. For this case we recommend to move your projects into a group and use [Direct transfer](/en/docs/onboarding/migration-groups-projects/). Be aware your GitLab administrators may need to adjust GitLab settings on the source GitLab: [Pre-Transfer requirements for GitLab administrators](/en/docs/onboarding/pre-transfer-requirements/)

### Pre-Transfer Requirements (Users)

1. **User Account Setup (User)**

- You need to be able to login to git.nrw in order to migrate projects

## Step 2: Import Process

### 1. Setup Access Token

- Create an access token in your project on **your GitLab instance** (not git.nrw).
- The token needs at least **api** and **read_repository** scopes
- To set them up open your Project and go to **Settings** -> **Access tokens**
- Select a role for the token: ![Select a token role](/images/docs/migration-personal-projects/token-role-en.png)
    - You should select at least the ‘Maintainer’ role
### 2. Initiate Import

- Create a new project and choose **Import project**: ![Import project](/images/docs/a7fdbc0e02ffef0c9b9f5c7d7db065e1/ppimport.JPG)
- Choose **Repository by URL**: ![Repository by URL](/images/docs/0edf6dba7923a4eb81690adac742ba9c/rbu.JPG)

Give your:

- **Git repository URL** \[1\] — This is the same URL you would use for an HTTPS cloning process
- Source GitLab **username** \[2\]
- Project **access token** as **Password** \[3\]
- **Project name** \[4\] — Can differ from the original project name from your source GitLab
- **Group or namespace** \[5\] — You can either move the project into your personal git.nrw namespace or pick a group if you want to share it
- **Project slug** \[6\] — As the identifier in the URL (automatically set to your project name)
- **Visibility level** \[7\] — Can differ from the source GitLab
- Then hit **Create project** \[8\] to start importing: ![Import repository](/images/docs/4da02f66174bbf50dcb1f5bd6bee94da/ppimpportreposiitory.JPG)

Please remember to update your local repositories: [Update Git remote URLs](https://docs.gitlab.com/tutorials/update_git_remote_url/#update-git-remote-urls)
