Forking Git repository from GitHub to GitLab

前端 未结 4 601
渐次进展
渐次进展 2021-01-29 19:54

Suppose that I would like to implement a fix to a project of someone else. That project resides on GitHub.

I could create a fork on GitHub and implement the fix.

4条回答
  •  半阙折子戏
    2021-01-29 20:26

    Instead of forking, you can import any publicly available GitHub repository using only the web interface:

    1. From your GitLab dashboard click New project
    2. Switch to the Import project tab
    3. Click on the Repo by URL button
    4. Fill in the "Git repository URL" and the remaining project fields
    5. Click Create project to begin the import process
    6. Once complete, you will be redirected to your newly created project

    Used this technique recently, and it works on any public repository even without a GitHub account. See this GitLab docs page for the source of info.

提交回复
热议问题