Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save timotheuslin/cb4fb965c6fe18ad9b972b4effb5269a to your computer and use it in GitHub Desktop.

Select an option

Save timotheuslin/cb4fb965c6fe18ad9b972b4effb5269a to your computer and use it in GitHub Desktop.

Revisions

  1. timotheuslin revised this gist Oct 2, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -15,6 +15,6 @@
    > **git pull upstream master** <br>
    4. push
    > **git push** <br>
    > **git push** <br>
    Ref. https://www.geeksforgeeks.org/sync-your-fork-with-master-in-github/
  2. timotheuslin revised this gist Oct 2, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -6,12 +6,12 @@
    > **git remote add upstream** git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git <br>
    > **git fetch upstream** <br>
    2 Merge upstream's master branch <br>
    2. Merge upstream's master branch <br>
    > **git merge upstream/master** <br>
    (OR)<br>

    3 Updating your fork from original repo to keep up with their changes:<br>
    3. Updating your fork from original repo to keep up with their changes:<br>
    > **git pull upstream master** <br>
    4. push
  3. timotheuslin revised this gist Oct 2, 2020. 1 changed file with 8 additions and 3 deletions.
    11 changes: 8 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,20 @@
    0. Setup your cloned-fork: <br>
    > git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git <br>
    > cd into/cloned/fork-repo <br>
    1. Add remote from original repository in your forked repository: <br>
    > **git remote add upstream** git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git <br>
    > **git fetch upstream** <br>
    2.2 Merge upstream's master branch <br>
    2 Merge upstream's master branch <br>
    > **git merge upstream/master** <br>

    (OR)<br>
    2.1 Updating your fork from original repo to keep up with their changes:<br>

    3 Updating your fork from original repo to keep up with their changes:<br>
    > **git pull upstream master** <br>
    3. push

    4. push
    > **git push** <br>
    Ref. https://www.geeksforgeeks.org/sync-your-fork-with-master-in-github/
  4. timotheuslin revised this gist Oct 2, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    > **git fetch upstream** <br>
    2.2 Merge upstream's master branch <br>
    > **git merge upstream/master** <br>
    (OR)
    (OR)<br>
    2.1 Updating your fork from original repo to keep up with their changes:<br>
    > **git pull upstream master** <br>
    3. push
  5. timotheuslin revised this gist Oct 2, 2020. 1 changed file with 8 additions and 3 deletions.
    11 changes: 8 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,12 @@
    1. Add remote from original repository in your forked repository: <br>
    > **git remote add upstream** git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git <br>
    > **git fetch upstream** <br>
    2. Updating your fork from original repo to keep up with their changes:<br>
    2.2 Merge upstream's master branch <br>
    > **git merge upstream/master** <br>
    (OR)
    2.1 Updating your fork from original repo to keep up with their changes:<br>
    > **git pull upstream master** <br>
    > **git push** <br>
    3. push
    > **git push** <br>
    Ref. https://www.geeksforgeeks.org/sync-your-fork-with-master-in-github/
  6. timotheuslin revised this gist Oct 2, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,5 @@
    > **git fetch upstream** <br>
    2. Updating your fork from original repo to keep up with their changes:<br>
    > **git pull upstream master** <br>
    > **git push** <br>
  7. timotheuslin revised this gist Oct 2, 2020. 1 changed file with 8 additions and 7 deletions.
    15 changes: 8 additions & 7 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,9 @@
    0. Setup your cloned-fork:<br>
    > git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
    > cd into/cloned/fork-repo
    1. Add remote from original repository in your forked repository:<br>
    > **git remote add upstream** git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
    > **git fetch upstream**
    0. Setup your cloned-fork: <br>
    > git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git <br>
    > cd into/cloned/fork-repo <br>
    1. Add remote from original repository in your forked repository: <br>
    > **git remote add upstream** git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git <br>
    > **git fetch upstream** <br>
    2. Updating your fork from original repo to keep up with their changes:<br>
    > **git pull upstream master**
    > **git pull upstream master** <br>
  8. timotheuslin revised this gist Oct 2, 2020. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    0. Setup your cloned-fork:<br>
    git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
    cd into/cloned/fork-repo
    > git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
    > cd into/cloned/fork-repo
    1. Add remote from original repository in your forked repository:<br>
    **git remote add upstream** git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
    **git fetch upstream**
    > **git remote add upstream** git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
    > **git fetch upstream**
    2. Updating your fork from original repo to keep up with their changes:<br>
    **git pull upstream master**
    > **git pull upstream master**
  9. timotheuslin revised this gist Oct 2, 2020. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    0. Setup your cloned-fork:
    0. Setup your cloned-fork:<br>
    git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
    cd into/cloned/fork-repo
    1. Add remote from original repository in your forked repository:
    1. Add remote from original repository in your forked repository:<br>
    **git remote add upstream** git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
    **git fetch upstream**
    2. Updating your fork from original repo to keep up with their changes:
    2. Updating your fork from original repo to keep up with their changes:<br>
    **git pull upstream master**
  10. timotheuslin revised this gist Oct 2, 2020. 1 changed file with 6 additions and 11 deletions.
    17 changes: 6 additions & 11 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,8 @@
    ### 1. Clone your fork:

    0. Setup your cloned-fork:
    git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

    ### 2. Add remote from original repository in your forked repository:

    cd into/cloned/fork-repo
    git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
    git fetch upstream

    ### 3. Updating your fork from original repo to keep up with their changes:

    git pull upstream master
    1. Add remote from original repository in your forked repository:
    **git remote add upstream** git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
    **git fetch upstream**
    2. Updating your fork from original repo to keep up with their changes:
    **git pull upstream master**
  11. @CristinaSolana CristinaSolana revised this gist Feb 22, 2012. No changes.
  12. @CristinaSolana CristinaSolana created this gist Feb 22, 2012.
    13 changes: 13 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    ### 1. Clone your fork:

    git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

    ### 2. Add remote from original repository in your forked repository:

    cd into/cloned/fork-repo
    git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
    git fetch upstream

    ### 3. Updating your fork from original repo to keep up with their changes:

    git pull upstream master