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 r
I think this is the easiest way:
git clone new_url
This works because git is a distributed version control system. As far as git is concerned there is nothing special about the existing repo on your computer. Just clone a new one.
If you prefer to keep using the existing local repo in my opinion it's easier to use git to update itself instead of manually editing a config file:
git remote set-url origin new_url
mv projectname newprojectname