I forked a github repo. Now I want to update my fork to the current repo version. How can I do that?
I had the same doubt and found the answer in the github help .
git remote add upstream git://url-to-original
git fetch upstream
git merge upstream/master
git push
upstream is the name I gave to the original repository.
Hope it helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.