Git basics

Change where your repo pushes (remote URL)

Point your local repo at a new GitHub address, or switch between HTTPS and SSH.

Fill these in once
  1. See the current address
    Terminal
    git remote -v
  2. Change it
    Terminal
    git remote set-url origin git@github.com:username/project.git

Check it worked

  1. Check the new address
    Terminal
    git remote -v
  1. See the current address
    Terminal · Ubuntu / Debian
    git remote -v
  2. Change it
    Terminal · Ubuntu / Debian
    git remote set-url origin git@github.com:username/project.git

Check it worked

  1. Check the new address
    Terminal · Ubuntu / Debian
    git remote -v
  1. See the current address
    PowerShell
    git remote -v
  2. Change it
    PowerShell
    git remote set-url origin git@github.com:username/project.git

Check it worked

  1. Check the new address
    PowerShell
    git remote -v