How do I create a new GitHub repo from a branch in an existing repo?

前端 未结 6 1418
既然无缘
既然无缘 2020-12-02 03:21

I have master and new-project branches. And now I\'d like to create a brand new repo with its master based on the new-project branch.

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 04:14

    Remembering that when you simply create a new repo, you lose reference to the old one, and make it harder to maintain any update to the original project synched to the new one. Perhaps isn't it better to fork the repo?

提交回复
热议问题