前言
fork了一个仓库以后怎么同步源仓库的代码?
先说一下git clone太慢的问题,可以通过代理拉取代码,具体请看:
https://gitclone.com/
步骤
1、执行命令 git remote -v 查看你的远程仓库的路径。
以一个实际例子说明,
来源仓库:
TheFirstLineOfCode/basalt
git remote -v
得到:
origin https://github.com/ghmin/basalt (fetch)
origin https://github.com/ghmin/basalt (push)
上游代码库:
https://github.com/TheFirstLineOfCode/basalt.git