Remotes

    Source: https://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories

    List remotes πŸ”—

    git remote -v
    

    Change remote URL πŸ”—

    git remote set-url origin git@github.com:OWNER/REPOSITORY.git
    

    Add remote πŸ”—

    Source: New github repo

    Usually when a new repo is created this command is provided, and this is generally the easiest way to add it as no modification is needed just copy and paste.

    git remote add origin git@github.com:OWNER/REPOSITORY.git
    

    Clear out remotes that no longer exist πŸ”—

    git fetch --prune