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

Answer: 
If you meant renaming your repository, go to your repository and click "admin", then rename.

Once you see the red box warning you about some sky-fallingness and other things, [go read this question](https://stackoverflow.com/questions/5751585/change-repo-name-in-github/5751588#5751588).
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)