简体   繁体   English

仅使用本地克隆副本创建新的回购

[英]Create a new Repo with the local cloned copy alone

Unfortunately my GIT Repo server is down indefinitely.. 不幸的是,我的GIT Repo服务器无限期关闭。

I just have a local clone copy which is assumed to be the latest, having all commits and branches. 我只有一个本地克隆副本,该副本被认为是最新的,具有所有提交和分支。

Now. 现在。 How do i create a new Bare repo out of this Clone copy. 如何从此克隆副本中创建新的Bare回购。

I dont want to turn this copy in to a git repo. 我不想把这个副本变成一个git仓库。 Instead , is there a way to make a new repo out of just with the .git folder. 而是有一种方法可以仅使用.git文件夹制作新的存储库。 A bare repo to be specific 明确的裸仓库

A bare repo really is just one that has no working directory. 裸回购真的只是一个没有工作目录。 I am pretty sure if you simply delete all the working files you will have what you need. 我很确定,如果您只删除所有工作文件,您将拥有所需的文件。

It is the git database that stores all the details required to 'reconstruct' any commit state. 它是git数据库,用于存储“重构”任何提交状态所需的所有详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM