Forking Git repository from GitHub to GitLab

前端 未结 4 529
渐次进展
渐次进展 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:30

    The browser-only way:

    1. Create a new project in Gitlab (Just an empty project with a name is fine)
    2. Go to Settings -> Respository
    3. Enter GitHub URL under 'Mirroring repositories'
    4. Make sure 'Mirror direction' is 'Pull'
    5. Press 'Mirror repository' button
    6. Press the sync icon next to the entry that appears

提交回复
热议问题