Skip to content

Instantly share code, notes, and snippets.

@bcg5017
Forked from ezkl/git-remote-output.md
Created September 27, 2011 19:58
Show Gist options
  • Save bcg5017/1246062 to your computer and use it in GitHub Desktop.
Save bcg5017/1246062 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	[email protected]: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	[email protected]:ezkl/code.ipsrvcs.com.git (push)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment