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
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ezkl/1246032 to your computer and use it in GitHub Desktop.
Save ezkl/1246032 to your computer and use it in GitHub Desktop.
The output of `git remote -v`

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)

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment