我如何重新启动一个git / GitHub项目? [英] How do I restart a git/GitHub project?

查看:231
本文介绍了我如何重新启动一个git / GitHub项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在GitHub上托管的项目上工作了一段时间。不过,我现在已经决定要以不同的方式重写我的应用程序,并从头开始。我重命名了我的旧本地存储库并创建了一个新的存储库。

如何使用新的存储库替换GitHub上托管的存储库?我真的不在乎我的旧历史和问题是否存在。最好的办法就是删除GitHub仓库并创建一个新仓库。

解决方案

重命名现有的GitHub仓库并创建一个新名称与旧名称。您将拥有旧版本的历史以及指向新版本的链接。它会混淆一些,但它会产生预期的效果。


I've been working for a while on a project hosted in GitHub. However, I've now decided I want to rewrite my application a different way, and have started from scratch. I renamed my old local repository and have created a new one.

How do I use the new repository to replace the repository hosted on GitHub? I don't really care if my old history and issues are there or not. Would the best way just be to delete the GitHub repository and create a new one?

解决方案

Rename the existing GitHub repository and create a new one with the old name. You'll have the history of the old one and the links pointing to the new one. It'll confuse some, but it will have the desired effect.

这篇关于我如何重新启动一个git / GitHub项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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