[英]How to restore deleted repository on Github and keep all commit history?
I have a local copy of an old repo that was deleted on Github already. 我有一个旧仓库的本地副本,该副本已在Github上删除。
This local copy was just a simple clone (without -bare or -mirror) made by: 此本地副本只是由以下人员创建的简单克隆(不带-bare或-mirror):
git clone https://github.com/olduser/oldrepo.git
This old Github user account I already lost control. 这个旧的Github用户帐户我已经失去控制了。
How to upload this deleted repo back to Github, while keeping all commit history? 如何在保留所有提交历史记录的同时将已删除的仓库回传到Github?
What I want is similar to restore it as if it were forked, and to a new location: 我想要的是类似于将其还原为分叉并将其还原到新位置的方法:
https://github.com/newuser/newrepo.git
Is it possible? 可能吗?
一个git remote set-url origin https://github.com/newuser/newrepo.git
然后是一个git push origin
应该可以做到。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.