Git10 更新fork后的代码

首先要先确定一下是否建立了仓库的远程源:

git remote -v

如果里面只能看到你自己的两个源(fetchpush),那就需要添加主仓库的源:

git remBASHote add upstream URL
git remote -v

然后你就能看到upstream了。

如果想与主仓库合并:

git fetch upstream
git merge upstream/master

猜你喜欢

转载自blog.csdn.net/duola8789/article/details/94739551