zoukankan      html  css  js  c++  java
  • 让你fork下来的项目与源项目保持同步

    原文在此, 建议阅读, 我把关键步骤抽出来了, 方便概览

    (也就是add remote upstream, fetch upstream, rebase, 再push)

    Step 1: Forking a repo

    git clone https://github.com/nitin-test/blog-example-fork.git
    git remote add upstream https://github.com/nitstorm/blog-example.git
    git remote
    git remote show origin
    git remote show upstream
    

    Step 2: Making changes and submitting Pull Requests

    git checkout -b word-addition
    git commit -am "Adds the word memory"
    git push origin word-addition
    # 网页端发起merge到master
    

    Step 3: Keeping the forked repo synced with the main repo

    # 确保你是在master分支
    git checkout master
    git fetch upstream
    git rebase upstream/master
    git push origin master
  • 相关阅读:
    php与js 编码解码交互
    计算每页个数算法
    线程合并
    Sql调试
    并发问题
    context.Request方法总结
    元字符
    PHP留言小练习
    Git Shell Warning
    loading bar
  • 原文地址:https://www.cnblogs.com/walkerwang/p/5355381.html
Copyright © 2011-2022 走看看