码迷,mamicode.com
首页 > 其他好文 > 详细

update github project

时间:2016-09-22 07:45:03      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:git update newset


when fork other‘s project in github,to obtain the newest version,you need to do:

  1. clone your fork project into local path:

    git clone https://github.com/your_github/EventBus.git

  2. 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

  3. 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.

  4. git push origin master


本文出自 “whatever957” 博客,请务必保留此出处http://whatever957.blog.51cto.com/6835003/1855217

update github project

标签:git update newset

原文地址:http://whatever957.blog.51cto.com/6835003/1855217

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!