Mailinglist Archive: radeonhd (169 mails)

< Previous Next >
Re: [radeonhd] git branches
  • From: "Alex Deucher" <alexdeucher@xxxxxxxxx>
  • Date: Fri, 5 Sep 2008 12:13:56 -0400
  • Message-id: <a728f9f90809050913q7fbcfcb9t9d6a0cf185fe0928@xxxxxxxxxxxxxx>
On Fri, Sep 5, 2008 at 11:13 AM, Thomas Prochaska <thomas@xxxxxxxxxxx> wrote:
hi!

after a long time of fiddling i just don't understand (i read the mans and
docs) how you can checkout a specific git branch.

You need to tell git what local branch to checkout the remote branch as:
git checkout -b <local branch> origin/<remote branch>

if you give the local branch the same name as the remote branch it
will track the remote branch when you pull updates.
git checkout -b CS origin/CS

'git branch' will show you local branches, 'git branch -r' will show
you remote branches.

Alex
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx

< Previous Next >
References