Skip to content

Instantly share code, notes, and snippets.

@ezkl
Forked from bcg5017/new remote -v
Created September 27, 2011 19:47
Show Gist options
  • Select an option

  • Save ezkl/1246032 to your computer and use it in GitHub Desktop.

Select an option

Save ezkl/1246032 to your computer and use it in GitHub Desktop.

Revisions

  1. ezkl revised this gist Sep 27, 2011. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion git-remote-output.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@

    # fetch is where you update from
    `git fetch origin master` == fetch any updates from the remote repository called origin's `master` branch.

    OR

    `git pull origin master` == fetch any updates AND merge them into mine

    origin git@github.com:ezkl/code.ipsrvcs.com.git (fetch)
  2. ezkl revised this gist Sep 27, 2011. 1 changed file with 10 additions and 3 deletions.
    13 changes: 10 additions & 3 deletions git-remote-output.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,12 @@
    #

    `origin git@github.com:ezkl/code.ipsrvcs.com.git (fetch)`
    # fetch is where you update from
    `git fetch origin master` == fetch any updates from the remote repository called origin's `master` branch.
    OR
    `git pull origin master` == fetch any updates AND merge them into mine

    `origin git@github.com:ezkl/code.ipsrvcs.com.git (push)`
    origin git@github.com:ezkl/code.ipsrvcs.com.git (fetch)

    # push is where you put your updates
    `git push origin master` == push any committed updates from my local repository into the remote repository origin's `master` branch.

    origin git@github.com:ezkl/code.ipsrvcs.com.git (push)
  3. ezkl revised this gist Sep 27, 2011. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions git-remote-output.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #

    `origin git@github.com:ezkl/code.ipsrvcs.com.git (fetch)`

    `origin git@github.com:ezkl/code.ipsrvcs.com.git (push)`
  4. ezkl revised this gist Sep 27, 2011. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions git-remote-output.md
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,3 @@
    `origin git@github.com:ezkl/code.ipsrvcs.com.git (fetch)`

    `origin git@github.com:ezkl/code.ipsrvcs.com.git (push)`
  5. ezkl revised this gist Sep 27, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions git-remote-output.md
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    origin git@github.com:ezkl/code.ipsrvcs.com.git (fetch)
    origin git@github.com:ezkl/code.ipsrvcs.com.git (push)
    `origin git@github.com:ezkl/code.ipsrvcs.com.git (fetch)`
    `origin git@github.com:ezkl/code.ipsrvcs.com.git (push)`
  6. ezkl renamed this gist Sep 27, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  7. ezkl renamed this gist Sep 27, 2011. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions new remote -v → git-remote-output.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,2 @@
    MacBook-Pros-MacBook-Pro-2:new macbookpro$ git remote -v
    origin git@github.com:ezkl/code.ipsrvcs.com.git (fetch)
    origin git@github.com:ezkl/code.ipsrvcs.com.git (push)
    MacBook-Pros-MacBook-Pro-2:new macbookpro$
  8. @invalid-email-address Anonymous created this gist Sep 27, 2011.
    4 changes: 4 additions & 0 deletions new remote -v
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    MacBook-Pros-MacBook-Pro-2:new macbookpro$ git remote -v
    origin git@github.com:ezkl/code.ipsrvcs.com.git (fetch)
    origin git@github.com:ezkl/code.ipsrvcs.com.git (push)
    MacBook-Pros-MacBook-Pro-2:new macbookpro$