Think before you speak, read before you think.

gitlab fork库与源库保持更新

by

in

fork 之后做自己的功能,要与源库进行功能合并时用 MergeRequest

但是如果自己的库与源库落后太多,则可以这样

查看远程 repo

git remote -v

如果里面只能看到你自己的两个源(fetch 和 push),那就需要添加主repo的源:

git remote add upstream URL
git remote -v

如果想与主repo合并:

git fetch upstream
git merge upstream/master
或 git rebase upstream/master

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *