SORU
27 Mayıs 2011, Cuma


Neden bu çıplak depoya'I bas t?

Bu iş akışı ile sorunun ne olduğunu açıklayabilir misiniz?

$ git init --bare bare
Initialized empty Git repository in /work/fun/git_experiments/bare/
$ git clone bare alice
Cloning into alice...
done.
warning: You appear to have cloned an empty repository.
$ cd alice/
$ touch a
$ git add a
$ git commit -m "Added a"
[master (root-commit) 70d52d4] Added a
 0 files changed, 0 insertions( ), 0 deletions(-)
 create mode 100644 a
$ git push
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 '/work/fun/git_experiments/bare'

git push her zaman depoyu basma klonladım değil mi?

CEVAP
27 Mayıs 2011, Cuma


Evet, sorun işliyor olmasıdır "". çıplak Bu ilk sipariş (çıplak alice) repo oluşturursanız sadece kaydetme ile ilgili bir sorun. git push --set-upstream origin master yapmayı deneyin. Bu sadece ilk kez gerekli olacaktır. Daha sonra normal olarak çalışması gerekir.

Chris Johnson belirttiği gibi, bas eğer bu sorun olmazdı.varsayılan özelleştirilmiş oldu. Yukarı/izlemeyi severim.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:
Git

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • FattySpins's channel

    FattySpins's

    17 Mayıs 2009
  • ipsy Makeup Tips

    ipsy Makeup

    19 ŞUBAT 2009
  • xCraash

    xCraash

    6 Temmuz 2012