$ git remote -v
# 查看現有遠程
> origin https://github.com/OWNER/REPOSITORY.git (fetch)
> origin https://github.com/OWNER/REPOSITORY.git (push)
$ git remote rename origin destination
# 將遠程名稱從 'origin' 更改為 'destination'
$ git remote -v
# 驗證遠程的新名稱
> destination https://github.com/OWNER/REPOSITORY.git (fetch)
> destination https://github.com/OWNER/REPOSITORY.git (push)