when fork other‘s project in github,to obtain the newest version,you need to do:
clone your fork project into local path:
try git remove -v,if you can only see yourself origin(fetch/push),then you have to add the man repo manually:
git remote add upstream https://github.com/greenrobot/EventBus.git
then,merge the main repo
git fetch upstream
git merge upstream/master
so far,you local project is the newset version.but your github remain the same.so you have to push the newest to github.
git push origin master
本文出自 “whatever957” 博客,请务必保留此出处http://whatever957.blog.51cto.com/6835003/1855217
原文地址:http://whatever957.blog.51cto.com/6835003/1855217