http://gds.livejournal.com/ ([identity profile] gds.livejournal.com) wrote in [personal profile] metaclass 2009-08-10 04:55 pm (UTC)

я весьма слабо знаю гит, честное слово. Поэтому будет продуктивнее и интереснее, если Вы расскажете, что я делаю не так, а не наоборот.

gds@oldub:/tmp$ cd /tmp
gds@oldub:/tmp$ ( mkdir mainrep && cd mainrep && git init --bare )
Initialized empty Git repository in /tmp/mainrep/
gds@oldub:/tmp$ ( rm -rf workrep ; mkdir workrep && cd workrep && git clone ../mainrep && cd mainrep && touch kva && git add kva && git commit -m kva kva && git push )
Initialized empty Git repository in /tmp/workrep/mainrep/.git/
warning: remote HEAD refers to nonexistent ref, unable to checkout.

Created initial commit 52c9634: kva
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 kva
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '/tmp/workrep/../mainrep'
gds@oldub:/tmp$ git --version
git version 1.6.0.4
gds@oldub:/tmp$


Да, в этой версии он уже научился подсказывать про 'master', хоть до чего-то допёрли ребята.
Но, несмотря ни на что, я считаю это поведение нелогичным.
Самое хреновое, что таких нелогичностей там хоть попой кушай.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting