On Apr 8, 7:25 am, Pito Salas <r...@salas.com> wrote:
> Thanks everyone, for the explanations. Extremely useful!
> One final nuance:  What then does
> git fetch
> do different from
> git fetch origin
> ?

As long as origin is the configured remote for the current branch,
they do the same thing.  When you clone a repository, it automatically
sets up the origin remote (pointing to where you cloned from) and
configures the checked-out branch (generally master) like this:

[branch "master"]
        remote = origin
        merge = refs/heads/master

git fetch (which is the first step of git pull) uses this setting to
determine where to fetch from if you don't provide an argument.


You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to