使git中的克隆存储库成为主数据库 [英] Making cloned repository in git the master

查看:106
本文介绍了使git中的克隆存储库成为主数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个git存储库:

I have two git repositories:


  1. report.git(远程主机)

  2. cloned.git(本地)

我丢失了report.git。我有cloned.git。我想从此cloned.git克隆其他存储库。这是可能的,但是我的问题是我缺少什么吗?

I lost report.git. I have the cloned.git. I want to clone other repositories from this cloned.git. This is possible but my question is am I missing something? Is cloned.git really the same as the master report.git?

cloned.git仍然指向主report.git吗?我通过删除.git / config中的选项来更改此设置。足够了吗?

cloned.git still points to the Master report.git. I changed this by removing the options in the .git/config. Is this enough?

推荐答案

您的cloned.git存储库是处于报告状态的report.git的副本(副本)。 git是您从report.git克隆或上次撤出的时间。

Your cloned.git repository is a clone (copy) of report.git in the state that report.git was when you cloned or last pulled from report.git

您的cloned.git一直是一个主文档,report.git一直也是一个主文档。这就是git的美。

Your cloned.git has always been a master, report.git has always been a master as well. It's the beauty of git.

这篇关于使git中的克隆存储库成为主数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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