On Tue, Feb 15, 2011 at 09:06:18PM -0200, Daniel Trezub wrote:
> I've created a branch named "online".
> git checkout online
> Deleted everything from my dir (except .git and .gitignore)
> Downloaded my entire local site and made a commit.
> I did a git fetch and got my website in a remote/origin/master branch.
> Wasn't is supposed to just get my remote files and put them in my "online"
> local branch? If not, how am I supposed to do this? Or am I just looking at
> the wrong thing?
It's hard to tell exactly what's going on as you did not tell anything
about your setup and are using vague terms like "my dir".
In any case, I have two points to tell:
1) When fetching from a remote repo, to make a remote branch named
"online" end up as remote/origin/master you would have to pass
git-fetch a specially formed refspec; I assume you did not do this,
so probably the problem is elsewhere.
2) Please take time and try to familarise yourself with the concepts
behind remote branches;  will help, for instance.
Otherwise you'll keep bashing the problem without clear idea about
Provided I correctly guessed your setup, the simple demonstration of how
fetching a branch named "online" from a remote repo should be done in your
case is presented at .
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 email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at