如何重命名github上的存储库? [英] how to rename a repository on github?

查看:141
本文介绍了如何重命名github上的存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能存在重复:

更改github中的repo名称


我得到了一些github回购我现在需要重命名,但我不能在任何地方找到解决方案,除了删除回购和设置一个新的。我无法删除回购协议,因为有很多链接指向当前的回购协议,我不想放弃。任何人有任何想法如何做到这一点? (我已经阅读了很多谷歌搜索结果并搜索了github支持)。 是的,你可以在这里看到:

/ p>

重命名github回购

a>



如果我正确地理解了你,你想重命名你的git仓库,例如xyz.git为xyz1.git,然后让所有连接到该仓库链接的git仓库到新名称自动?



据我所知这是不可能的。每个存储库都是自包含的,并保存它链接到的位置列表。如果其中一个位置更改了名称,该链接将被打破。每个引用更改名称的存储库都需要更新其链接。



但是,如果删除存储库并以新名称重新创建存储库,则会发生同样的情况。 ..



刚刚意识到你正在专门讨论GitHub,而不是一般的Git,抱歉 - 应该学习像我的学校老师说的那样阅读整个问题。答案仍然存在,除此之外,您可以从管理页面更改GitHub中的名称。


Possible Duplicate:
Change repo name in github

I got some github repos that i now need to rename, but i can't anywhere find a solution for this except deleting the repo and setting up a new one. I can't delete the repos, because there are a lot of links pointing to the current repos, which i don't want to loose. Anyone any idea on how to do this? (I already read a lot of the google results and searched the github support).

解决方案

Yes you can, see here:

Rename github repo

If I understand you correctly you want to rename your git repository eg xyz.git to xyz1.git and then have all the git repositories that link to that repo link to the new name automatically?

As far as I know this isn't possible. Each repository is self contained and keeps a list of locations it links to. If one of those locations changes its name the link would be broken. Each repository that references the changed name would need to update its link.

But then, the same would happen if you deleted a repository and recreated it under a new name....

Just realised you were specifically talking about GitHub and not git in general, sorry - should learn to read the entire question like my school teachers said. The answer still stands, with the addition that you can change the name in GitHub from the Admin page.

这篇关于如何重命名github上的存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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