lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDP git clue?


From: Johannes Schindelin
Subject: Re: GDP git clue?
Date: Sun, 23 Sep 2007 23:07:49 +0100 (BST)

Hi,

On Sun, 23 Sep 2007, Michael Rasmussen wrote:

> I'm in need of a clue about git wrt the Lilypond GDP.
> 
> I've cloned the ly source[1], but it doesn't seem to include the GDP
> documentation branch we're working on.  Can you point the error of
> my approach?
> 
> 
> [1] with `git clone git://git.sv.gnu.org/lilypond.git lily-doc`

You cloned the complete lilypond.git repository.  And checked out the 
master branch.

This is what you should do now:

$ cd lily-doc
$ git checkout lily-doc

Just for your interest: if you wanted only one branch, you could have done 
this:

$ mkdir lily-doc
$ cd lily-doc
$ git init
$ git remote add -f -t lily-doc origin git://git.sv.gnu.org/lilypond.git
$ git checkout -b lily-doc origin/lily-doc

Explanation:

First initialise the git repository (the first 3 steps).

Then add a "remote" nick name, i.e. a shortcut for git to know where you 
want to fetch from; "-f" says to fetch right away, and "-t lily-doc" says 
only to fetch the branch "lily-doc".  The nick name is "origin", which has 
the special property that when you say "git pull", git pulls from 
"origin".

The last line just says that you make a local branch named "lily-doc" from 
the remote branch "origin/lily-doc".

Hth,
Dscho






reply via email to

[Prev in Thread] Current Thread [Next in Thread]