lilypond-devel
[Top][All Lists]
Advanced

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

Re: tracking two git branches at once


From: Johannes Schindelin
Subject: Re: tracking two git branches at once
Date: Tue, 6 Mar 2007 00:24:48 +0100 (CET)

Hi,

On Mon, 5 Mar 2007, Graham Percival wrote:

> cd /path/to/main/source/tree
> git checkout web/master
> git clone -l -s -n . web
> git checkout master   (or whatever branch you normally track)

A good recipe!

> # make sure that web/.git/config contains lines that look something like this:
> [remote "origin"]
>         url = /Users/gperciva/usr/src/lilypond/.git
>         fetch = +refs/heads/*:refs/remotes/origin/*
> [branch "web/master"]
>         remote = origin
>         merge = refs/heads/web/master

If you add something like

        [remote "sav"]
                url = ssh+git://git.sv.gnu.org/srv/git/lilypond.git
                push = web/master

you can push from that directory directly, with "git push sav".

Ciao,
Dscho





reply via email to

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