Updated: 18 August 2024
Change url of remote
git remote set-url origin new-url
Fetch one branch from a remote
git fetch <remote_name> <branch_name>
Rename remote
git remote rename origin origin_bitbucket
Delete reference to a remote
git remote remove temp-remote
Add a remote
git remote add origin git@github.com:User/UserRepo.git
Ping a remote by listing it’s references
git ls-remote opt_remote_name