title: Forking Git repository from GitHub to GitLab
body: <p>Suppose that I would like to implement a fix to a project of someone else. That project resides on GitHub.</p>
  
  <p>I could create a fork on GitHub and implement the fix.</p>
  
  <p>However, I would like to create my fork on GitLab rather than on GitHub.</p>
  
  <p>Is that possible? How?</p>
  
  <p>I have read this article:
  <a href="https://about.gitlab.com/2016/12/01/how-to-keep-your-fork-up-to-date-with-its-origin/" rel="noreferrer">https://about.gitlab.com/2016/12/01/how-to-keep-your-fork-up-to-date-with-its-origin/</a></p>
  
  <p>Anyway, I am not sure what should I do in my case.</p>
  
  <ul>
  <li>Should I just create a fork on GitLab of the project from GitHub somehow?</li>
  <li>Or should I create a mirror on GitLab of the project from GitHub?</li>
  <li>Or should I create a mirror on GitLab and then fork the mirror?</li>
  <li>Or should I do  something completely different?</li>
  </ul>
  
  <p>What is the correct approach.</p>
  
  <p>Thanks.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Repository mirroring on GitLab does not make sense probably. I can create a mirror of MY GitHub repository on GitLab but I cannot create a mirror of a repository of someone else.</p>
  
  <p><a href="https://docs.gitlab.com/ee/workflow/repository_mirroring.html" rel="noreferrer">https://docs.gitlab.com/ee/workflow/repository_mirroring.html</a></p>
  
  <p>This is what I have done so far:</p>
  
  <p>I have cloned the original GitHub project to my local machine. I have commited the fix to a new branch in my local repository. I have created an empty project on GitLab. I have set origin in my local repository to that empty project on GitLab and pushed both branches to GitLab. I have set upstream in my local repository to the GitHub repository.</p>
  
  <p>When I want to get new commits from the original GitHub repository to the repository on GitLab (i.e. sync the repositories), I can do this using my local repo as an intermediate step. However, there is no direct connection between the repo on GitHub and the repo on GitLab. Is my setup correct? Is there any difference if I make a fork on GitHub?</p>