1.添加远端仓库
git remote add origin https://github.com/user/repo.git
2.查看远端仓库
git remote -v
3.更改远端仓库URL,ssh->https
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
4.重命名远端仓库
git remote rename origin destination
5.删除远端仓库
git remote rm destination
原文:https://www.cnblogs.com/tomtellyou/p/12713004.html