How to fork a non-GitHub repo on GitHub?

自闭症网瘾萝莉.ら 提交于 2019-12-03 11:58:06

This is what I ended up doing:

  1. Create new repo on GitHub

  2. Clone the new repo

    git clone git@github.com:svnpenn/spoon-knife.git
    
  3. Add source code from original repo

    cd Spoon-Knife
    git remote add upstream git://spoon.com/knife.git
    git fetch upstream
    git merge upstream/master
    
  4. Push original source code to new repo

    git push origin master
    
  5. At this point you can start committing your own source code!

source: help.github.com/fork-a-repo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!