Is it possible to fork a github repo that I already own and then save it as a new repository?

前端 未结 1 1568
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-22 03:25

Another simple question on how to handle in github following up on this: should I do a git fork then branch or just a git branch

I want to use an app that I have as

相关标签:
1条回答
  • 2020-12-22 04:07

    You can

    1. create a new private repository on github,
    2. then clone your current repository on github to your local machine,
    3. then add that new repository to one of the remote of the clone,
    4. and finally push it to the new repository.

    For example, let say your current repository is git@github.com:me/current.git and the new one is git@github.com:me/new.git.

    $ git clone git@github.com:me/current.git local-copy
    $ cd local-copy
    $ git remote add new-repo git@github.com:me/new.git
    $ git push new-repo master
    
    0 讨论(0)
提交回复
热议问题