重命名BitBucket上配置的git项目的最简单方法 [英] Easiest way to rename git project configured on BitBucket

查看:131
本文介绍了重命名BitBucket上配置的git项目的最简单方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在BitBucket上托管了一个项目

I have a project hosted on BitBucket

我可以重命名吗?

如果没有,我需要创建一个新的存储库,有人可以告诉我最简单的方法,并在BitBucket上有一个新的仓库(对我来说,造成混乱的一个特殊原因是要在本地还是从Bitbucket网站上驱动该过程)

If not and I need to create a new repository can someone tell me the easiest way to do that and have new repo on BitBucket (one particular cause of confusion for me is whether to drive the process locally or from the bitbucket website)

更新

谢谢Rafal,我已按照您的指示进行了操作,效果很好,但我只是想让像我这样的菜鸟(在Linux上)更清楚

Thankyou Rafal I've followed your instructions and it works great but Im just going to make it a little clearer for noobies like myself (on linux)

  1. 在Bitbucket项目设置中重命名项目
  2. vi projectname/.git/config并编辑url值以反映新的bitbucket存储库url
  3. mv项目名称newprojectname

推荐答案

您可以从Bitbucket上项目的设置菜单中重命名项目.

You can rename the project form the settings menu of the projects on Bitbucket.

重命名后,您需要更新git配置文件以从新位置获取数据

Once you rename it, you need to update your git config file to fetch the data from the new location

nano .git/config

将项目名称更改为新名称并保存

Change the name of the project to the new name and save

这篇关于重命名BitBucket上配置的git项目的最简单方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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