LINUX.ORG.RU

git загрузить бранч ?


0

0

прошу прощения за (возможно глупый вопрос) , но
есть гит репозиторий

git://github.com/mangos/mangos.git


в нем две ветки, основная - master
(скачиваю git clone git://github.com/mangos/mangos.git )


и нестабильная 303-willcrashforsure

как бы мне скачать исходники с нее ?

★★★★★

Ответ на: комментарий от anonymous

$ git clone git://github.com/mangos/mangos.git
Initialized empty Git repository in /wrk/mangos/.git/
remote: Counting objects: 6220, done.
remote: Compressing objects: 100% (5115/5115), done.
remote: Total 6220 (delta 2987), reused 3843 (delta 1058)
Receiving objects: 100% (6220/6220), 15.05 MiB | 272 KiB/s, done.
Resolving deltas: 100% (2987/2987), done.
Checking out files: 100% (3370/3370), done.

$ cd mangos/

$ git-checkout 303-willcrashforsure
error: pathspec '303-willcrashforsure' did not match any file(s) known to git.

$ git-checkout -b 303-willcrashforsure
Switched to a new branch "303-willcrashforsure"

$ git-checkout 303-willcrashforsure
Already on "303-willcrashforsure"




что я делаю не так? не качается ничего...

Sylvia ★★★★★
() автор топика
Ответ на: комментарий от Sylvia

$ git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.303-willcrashforsure.merge' in
your configuration file does not tell me either. Please
name which branch you want to merge on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details on the refspec.

If you often merge with the same branch, you may want to
configure the following variables in your configuration
file:

branch.303-willcrashforsure.remote = <nickname>
branch.303-willcrashforsure.merge = <remote-ref>
remote.<nickname>.url = <url>
remote.<nickname>.fetch = <refspec>

See git-config(1) for details.

$ git pull 303-willcrashforsure
fatal: '303-willcrashforsure': unable to chdir or not a git archive
fatal: The remote end hung up unexpectedly


Sylvia ★★★★★
() автор топика

Не слушай этих неудачников, девачка:

git clone ...
cd ...
git checkout -b LOCAL_NAME origin/REMOTE_NAME

в твоем случае:
git checkout -b 303-willcrashforsure origin/303-willcrashforsure

anonymous
()

нашла какой то мануал, кажется там просто смержили master и 330 так что различий нет.. проверить бы это как-нибудь,

в svn хоть понятнее сделано, в гите тыкаюсь непонятно куда (

Sylvia ★★★★★
() автор топика
Ответ на: комментарий от mv

спасибо, так намного понятнее

Sylvia ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.