%%
date:: [[2022-08-18]]
%%
# [[How to rename a repository]]
When you rename a [[Git]] repository, the only thing that really changes is the URL of the remote. Git repos don't really know or care about their own names.
## On GitHub
If you're using [[GitHub]], rename the repository's name by going to the repository settings, typing the new name, and clicking *Rename*.
## Local
On your local machine, you can update the the remote URL using the following command:
```shell
git remote set-url origin
[email protected]:grafana/k6-hub.git
```
From there, you can rename the folder that the repository is in without issues.