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; [1] will help, for instance.
   Otherwise you'll keep bashing the problem without clear idea about
   your actions.

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 [2].

1. http://progit.org/book/ch3-5.html
2. http://pastebin.com/6B011dip

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-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to