I've recently made a Gitlab account which I want to use as a portfolio. I've created a Github Page with some content in it. Now the problem is, I'm trying to import all my projects I've made in Gitlab to my Github account. I've searched off Google and forums, some suggested I need to make tokens, which I tried but it didn't work.
I've tried to literally import a single Gitlab repository into my Github repository with the "+" button near my profile. It didn't work with the message "No source repositories were detected at https://git.osl.frl/JVeenswijk/pfSense. Please check the URL and try again" (Yes the project is set to public) from which I believe importing from Gitlab just doesn't work properly.
So I tried it with tokens, importing and even through the Github Desktop but neither of these work for me. I find it quite strange that Github and Gitlab have such trouble of connecting to each other, from my perspective they're almost the same with the functionalities but different features.
Now the question is:
I just successfully transferred the repository from GitLab to GitHub.
The repository in GitLab is private, which indicates that the GitHub Importer does not work, therefore, I follow below link and it works.
the instruction from GitHub official web page
Steps
$ git clone --bare https://external-host.com/extuser/repo.git
# Makes a bare clone of the external repository in a local directory
$ cd repo.git
$ git push --mirror https://github.com/ghuser/repo.git
# Pushes the mirror to the new GitHub repository
4.Remove the temporary local repository.
$ cd ..
$ rm -rf repo.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With