On Friday, January 20, 2012 4:01:27 PM UTC+1, dspfun wrote:
>
> Great, thanks for your answer! 
>
> A confusing thing is the difference between: 
>
> >git log master 
> and 
> >git log origin/master 
>
> "git log master" shows the log of the remote repositorys master 
> branch. 
>

No. "git log master" shows the local branch called "master" of the 
repository you are currently inside.
 

"git log origin/master" shows the log of a _local_ branch which is 
> tracking a remote branch (it is tracking the "origin master" branch, 
> and the local tracking branch is only updated when a "git fetch" is 
> made). 
>

"git log origin/master" shows the log of the remote branch "master" in the 
repository called "origin".

Your local branch called "master" is probably set up to track 
origin/master. When you do "git fetch (origin)", you update the remote 
branches (origin/master), but you do not change the local ones (master).

If you do "git pull", you will both update the remote branches, and merge 
the latest changes to your local branch. "git pull" equals "git fetch" and 
"git merge origin/master".



-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/GDgNE9fTJdIJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to