Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git intro request



I've read that tutorial numerous times as well as others at different sites, but I don't see information there about changing to a different branch which works. (Randal, thanks for the info about your video, I'll check google video when I have time this weekend). After doing the git clone via:

git-clone git://anongit.freedesktop.org/git/xorg/xserver.git

git-checkout gives me an error message about needing to do git-add first (which doesn't make sense to change branches). Perhaps a log will reveal my misunderstanding:

~/src/X11 $ git --version
git version 1.5.3

(11:43:15 Fri Nov 02 2007 jeremy@yuffie Power Macintosh)
~/src/X11 $ git-clone git://anongit.freedesktop.org/git/xorg/xserver.git
Initialized empty Git repository in /Users/jeremy/src/X11/xserver/.git/
remote: Generating pack...
remote: Done counting 57965 objects.
remote: Deltifying 57965 objects...
remote:  100% (57965/57965) done
Indexing 57965 objects...
remote: Total 57965 (delta 44681), reused 46952 (delta 35701)
 100% (57965/57965) done
Resolving 44681 deltas...
 100% (44681/44681) done

(11:49:40 Fri Nov 02 2007 jeremy@yuffie Power Macintosh)
~/src/X11 $ cd xserver/

(11:49:44 Fri Nov 02 2007 jeremy@yuffie Power Macintosh)
~/src/X11/xserver $ git checkout xorg-server-1.2-apple
error: pathspec 'xorg-server-1.2-apple' did not match any file(s) known to git.
Did you forget to 'git add'?


Thanks,
Jeremy


On Nov 2, 2007, at 10:59 AM, Bob wrote:

You switch branches using:

git checkout xorg-server-1.2-apple

(note that the dash between git and checkout is optional)

I would recommend reading through the tutorial at:

http://www.kernel.org/pub/software/scm/git/docs/tutorial.html

Bob

On 11/2/07, Jeremy Huddleston < email@hidden> wrote:So I'm an avid svn and cvs user, and last night, I spent about 2 hours
trying to figure out how to use git. At this point, I'm not sure if I
was using it incorrectly or freedesktop.org has restrictions on what
anonymous users can do. I figured out how to clone the master head of
xserver via:


git-clone git://anongit.freedesktop.org/git/xorg/xserver.git

but for the life of me, I can't figure out how to switch to the xorg-
server-1.2-apple head.  Could someone please put together a mini 'Hey
dummy, if you just RTFM for 5 more hours, you'll learn to do
_______'.  I know I'd really appreciate it, and I'm sure there are
others who want to contribute but don't want to spend all day learning
a new poorly documented version control system.

Thanks,
Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      ( email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >git intro request (From: Jeremy Huddleston <email@hidden>)
 >Re: git intro request (From: Bob <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.