You are not logged in.

#1 2007-02-23 12:25:25

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

git issues

I have some recent problems with that I haven't had before.

git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel
cd xf86-video-intel
git pull origin
> Already up-to-date.
git checkout modesetting
> error: pathspec 'modesetting' did not match any files(s) known to git.
> Did you forget to 'git add'?

Basically I can't checkout any branches anymore. Any ideas why that it? I've no clue when this issue started to appear.

Offline

#2 2007-02-23 12:30:12

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: git issues

OK, sorry for being quick. But if anyone is having the same problem, what is needed is the -b switch. I think it's new in git-1.5.

Offline

#3 2007-02-23 12:49:24

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: git issues

OK; I'm at a loss. Using the -b switch git says it's changing branch but in fact it doesn't... Help?

EDIT: OK; sorry for bothering everyone. It's the -m switch: git-checkout -m origin/modesetting does it

Last edited by nightfrost (2007-02-23 13:00:01)

Offline

Board footer

Powered by FluxBB