git - 在 git 中使克隆的存储库成为主存储库

标签 git clone git-clone

我有两个 git 存储库:

  1. report.git(远程主机)
  2. cloned.git(本地)

我丢失了 report.git。我有克隆的.git。我想从这个 cloned.git 克隆其他存储库。这是可能的,但我的问题是我错过了什么吗? cloned.git 真的和master report.git 一样吗?

cloned.git 仍然指向Master report.git。我通过删除 .git/config 中的选项来更改它。够了吗?

最佳答案

您的 cloned.git 存储库是 report.git 的克隆(副本),处于您克隆或上次从 report.git pull 时 report.git 的状态

你的 cloned.git 一直是高手,report.git 也一直是高手。这就是 git 的美妙之处。

关于git - 在 git 中使克隆的存储库成为主存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1694608/

相关文章:

performance - Git - 在克隆之前/之后过滤

git - 如何解决 "Port number ended with ' y'"的 url 错误?

git - Git 会克隆、获取或推送孤儿提交吗?

git - 择优 merge 在此方案中是否合适?

Git 推送错误 : failed to push some refs to?

git - 推送到 master 时出错

c# - Queue.Clone方法使用C#

java - 如何在JAVA中克隆 "class tree"与其他类名?

git - 在 Cygwin 中使用 Git 时如何设置默认编辑器?

java - 如何克隆 java keystore 实例?