使用gitlab時候 fork倉庫不會實時從主倉庫更新解決方案

付費用戶能夠使用現成的方案,地址見 連接git

可是私有gitlab時候,須要手動進行以下操做github

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream

3. Updating your fork from original repo to keep up with their changes:





原文操做見連接

更多相關連接
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
相關文章
相關標籤/搜索