付費用戶能夠使用現成的方案,地址見 連接git
可是私有gitlab時候,須要手動進行以下操做github
git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git git fetch upstream
原文操做見連接
更多相關連接
https://stackoverflow.com/questions/3903817/pull-new-updates-from-original-github-repository-into-forked-github-repository/3903835#3903835
https://help.github.com/en/articles/fork-a-repogitlab和github 在這方面上仍是有些不一樣,github會自動同步,能夠節約不少時間git pull upstream master