Tech Notes

Rename Repo

Contents


Rename Repository on GitHub

# No CLI required — done in browser:

# 1. Go to your repo on GitHub
# 2. Click "Settings"
# 3. Change "Repository name"
# 4. Click "Rename"

Contents


Update Local Repository

# Check current remote
git remote -v

# Change remote URL (HTTPS)
git remote set-url origin https://github.com/<USERNAME>/<NEW_REPO_NAME>.git

# OR (SSH)
git remote set-url origin git@github.com:<USERNAME>/<NEW_REPO_NAME>.git

Contents

Verify Changes

# Confirm new remote URL
git remote -v

# Test connection
git fetch

# Push to confirm everything works
git push

Contents


Rename Local Folder (Optional)

# Go one level up
cd ..

# Rename folder
mv <OLD_REPO_NAME> <NEW_REPO_NAME>

# Enter renamed folder
cd <NEW_REPO_NAME>

Contents