Question: `git mv` renames a file or directory in a repository. How do I rename the Git repository itself?

Answer: 
If you are using GitLab or GitHub, then you can modify those files graphically.

**Using GitLab**

Go to your project *Settings*. There you can modify the name of the project and most importantly you can rename your repository (that's when you start getting in the danger section).

Once this is done, local clients configurations must be updated using

```
git remote set-url origin sshuser@gitlab-url:GROUP/new-project-name.git

```
For [Amazon AWS](http://en.wikipedia.org/wiki/Amazon_Web_Services) `codecommit` users,

```
aws codecommit update-repository-name --old-name MyDemoRepo --new-name MyRenamedDemoRepo

```

Reference: [here](http://docs.aws.amazon.com/codecommit/latest/userguide/how-to-change-repository.html)