Il 04/08/2012 02:27, John Mandereau ha scritto:
Il giorno ven, 03/08/2012 alle 01.17 +0200, Federico Bruni ha scritto:
> git branch --track translation origin/translation
> git checkout translation
FWIW
git checkout origin/translation
is a shorthand for the 2-commands sequence you gave.
I've just tried it after a fresh git clone and it doesn't seem to work:
fede@fede-laptop:~/lilypond-git$ git checkout origin/translation
Note: checking out 'origin/translation'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 952705b... Merge branch 'translation' into staging
fede@fede-laptop:~/lilypond-git$ git status
# Not currently on any branch.
nothing to commit (working directory clean)
_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond