xxxxxxxxxx
# Step 1: Clone the GitHub repository locally
git clone <GitHub_repository_url>
# Step 2: Change into the cloned directory
cd <repository_directory>
# Step 3: Add the GitLab repository as a remote (suppose the GitLab repository is empty)
git remote add gitlab <GitLab_repository_url>
# Step 4: Push the local repository to GitLab
git push gitlab --all
git push gitlab --tags
xxxxxxxxxx
This is very easy by import repository feature Login to github.com,
Side of profile picture you will find + button click on that then there will be option to import repository. you will find page like this. enter image description here Your old repository’s clone URL is required which is gitlab repo url in your case. then select Owner and then type name for this repo and click to begin import button.