是否有可能分叉一个我已经拥有的github repo,然后将它保存为一个新的存储库? [英] Is it possible to fork a github repo that I already own and then save it as a new repository?

查看:121
本文介绍了是否有可能分叉一个我已经拥有的github repo,然后将它保存为一个新的存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于如何在github中处理这个问题的另一个简单问题:我应该做一个git分支,然后分支或只是一个git分支

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 a private repo as the starting point for a new app. It looks like I'd want to fork it and then clone it but when I fork it, I don't see a new repo. However, the fact that I can click fork makes me believe that this is possible? How would I achieve this or is there a better way for me to do this? I was thinking of just branching but I need to work with another developer and it would seem easier to just have these as separate repos.

thx

推荐答案

您可以

You can


  1. 在github上创建一个新的私有存储库,
  2. 然后将github上的当前存储库克隆到本地机器上,

  3. 然后将该新存储库添加到克隆远程的一个

  4. ,并最终将其推送到新的存储库。
  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.

例如,假设您的当前存储库是 git@github.com:me / current.git ,并且新一个是 git@github.com:me / new.git

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

这篇关于是否有可能分叉一个我已经拥有的github repo,然后将它保存为一个新的存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆