/github-for-non-tech

How to rename a repository on GitHub?

Learn how to rename your GitHub repository with our step-by-step guide. Update settings, change your remote URL, and adjust external links easily.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to rename a repository on GitHub?

 
Step 1: Sign in to GitHub and navigate to your repository
 

  • Open your web browser and go to https://github.com/.
  • Enter your username and password, then click “Sign in.”
  • In the list of repositories on your dashboard, click the repository you want to rename.

 
Step 2: Open the repository settings
 

  • On the repository’s main page, locate the menu bar near the top.
  • Click the Settings tab (usually to the right of “Insights”).

 
Step 3: Locate the Repository name field
 

  • Scroll down to the “Repository name” section under the General settings header.
  • You will see a text box populated with your current repository name.

 
Step 4: Enter the new repository name
 

  • Click inside the repository name text box.
  • Type your desired new name. Make sure it follows GitHub’s naming rules (no spaces, use hyphens or underscores).

 
Step 5: Confirm the rename action
 

  • Click the Rename button located next to the text box.
  • A confirmation dialog may appear. Read the warnings, then click I understand the consequences, rename this repository (if prompted).

 
Step 6: Update your local repository’s remote URL
 

  • Open your terminal or command prompt.
  • Change directory to your local repository folder:
cd path/to/your/local-repo
  • Check the current remote URL:
git remote -v
  • Set the remote origin to the new GitHub repository URL:
git remote set-url origin https://github.com/your-username/new-repo-name.git
  • Verify the update:
git remote -v

 
Step 7: Test the connection and push changes
 

  • Fetch from the remote to ensure connectivity:
git fetch origin
  • Push any commits to verify everything works:
git push

 
Step 8: Update any external links or CI/CD settings
 

  • Change links in your README, documentation or other sites to the new repository URL.
  • If you use continuous integration or deployment, update your configuration to point to the renamed repository.

 
Congratulations! You have successfully renamed your GitHub repository and updated your local setup.
 

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022