zoukankan      html  css  js  c++  java
  • github 如何合并不同分支

    From:

    http://stackoverflow.com/questions/1123344/merging-between-forks-in-github

    1. 添加remote original 分支,名字貌似喜欢叫upstream

    git remote add upstream git://github.com/octocat/Spoon-Knife.git

    2. fetch

    git fetch upstream

    3. 然后会看到各种versions

    From git://github.com/octocat/Spoon-Knife.git
     * [new branch]      gh-pages   -> upstream/gh-pages
     * [new branch]      master     -> upstream/master

    4. Merge 或者 pull

    git merge upstream/master

    或者pull

    git pull upstream/master
  • 相关阅读:
    cJSON库源码分析
    cJSON 使用详解
    day23
    day22
    作业21
    day21
    作业20
    day20
    作业
    day19
  • 原文地址:https://www.cnblogs.com/liangnote/p/5006710.html
Copyright © 2011-2022 走看看