Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easiest way to rename git project configured on BitBucket

Tags:

git

bitbucket

I have a project hosted on BitBucket

Can I rename it ?

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)

Update

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. In Bitbucket project settings rename project
  2. vi projectname/.git/config and edit url value to reflect new bitbucket repository url
  3. mv projectname newprojectname
like image 761
Paul Taylor Avatar asked Aug 26 '14 14:08

Paul Taylor


People also ask

How do I rename a Git project?

Select the repo you want to rename under Git repositories on the left and select .... Select Rename repository... from the menu. If the Repositories pane is not expanded, select > to expand it and display the list of repositories. Enter a new repo name in the Repository name field in the dialog, then select Rename.

Can we change repository name in bitbucket?

1. Rename the Repository in Bitbucket. In a browser, log into Bitbucket and surf to the repository of interest. Click the gearwheel button on the left (“Repository settings”) and do a simple rename.


1 Answers

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

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

like image 107
Rafal Avatar answered Oct 03 '22 00:10

Rafal