lilypond-devel
[Top][All Lists]
Advanced

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

working with other git branches (was: Tie Crusade - what to do now)


From: Janek Warchoł
Subject: working with other git branches (was: Tie Crusade - what to do now)
Date: Sun, 18 Aug 2013 16:24:58 +0200

Hi,

2013/8/18 Thomas Morley <address@hidden>:
> 2013/8/18 Janek Warchoł <address@hidden>:
>> PS if anyone needs *any* help with git, i'll gladly help!
>
> let me take you at your word.

excellent!  I like it when my words are taken seriously :-)

> Recently you posted
> http://lists.gnu.org/archive/html/lilypond-devel/2013-08/msg00138.html
> with the public branch
> dev/frax/colorful-make
>
> How do I get this branch?
> I.e. what to do/type?

side-question: what git version do you have? ('git --version')

1) go to the directory lilypond repository (that was obvious)
2) run 'git status' to see in what state is your repository.  It sould
say something like "on branch <branchname> [...]". If it says you have
uncommitted changes, you should commit or stash them before proceeding
(ask if you need help)
3) update your repository using 'git fetch' (or 'git pull', depending
on your preferences), you have probably done this step recently so it
may not be necessary
4) to go to the desired branch, run 'git checkout <branchname>' - in
this case, 'git checkout dev/frax/colorful-make'.  Git will probably
say something about seting up a branch X to track remote branch X from
origin.
5) that's it.  remember that whatever you do will happen on this
branch (for example new commits will be attached to it) until you tell
git to switch to another branch.  When you don't know where you are,
run 'git status' or 'git branch'.

As you can see, it boils down to one command (step 4), but just to
make sure everything is working as expected you may need some extra
commands.  Be sure to ask more questions if you need. (for example, if
you'd like to use that colorful make when working on some of your
patches).

hth,
Janek



reply via email to

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