原文:https://gb.yekai.net/concepts/origin-vs-upstream
1、查看远程仓库列表
# 查看远程仓库列表
git remote -v # grv
# 查看具体仓库细节
git remote show origin # gr show origin
2、添加 upstream 仓库信息
git remote add upstream <git_repository_url> # gra upstream
3、删除 upstream 仓库信息
git remote remove upstream # grrm upstream