答案来源自知乎:gitlab或github下fork后如何同步源的新更新内容? - HyG cs的回答 - 知乎
https://www.zhihu.com/question/28676261/answer/44606041
开始:给fork配置远程库
首先确保你已经把仓库repository下载到本地,如若没有,请使用如下命令下载:
# 注意:yourname是你的用户名,yourrepository是你fork的仓库
git clone https://github.com/yourname/yourrepository.git
然后给fork配置远程库,使用如下命令:
git remote -v
查看远程状态,还未配置时类似如下:
origin https://github.com/linjiafengyang/WeTeam.git (fetch)
origin https://github.co