SORU
26 EYLÜL 2010, Pazar


Nasıl `klon` da dahil olmak üzere alt modüller gıt?

Bir repo içine bir submodule koymaya çalışıyorum.

Sorun üst repo clone, submodule klasörü tamamen boş olmasıdır.

Orada 'git clone üst' aslında submodule klasöründe veri koyar? bunu yapmak için herhangi bir yolu var mı

örnek: http://github.com/cwolves/sequelize/tree/master/lib/

nodejs-mysql-native harici gıt gösteriyor, ama ben sequelize proje teslim olduğunda, bu klasör boş

CEVAP
14 Aralık 2010, Salı


Git sürüm 1.6.5 ve daha sonra kullanabilirsiniz:

git clone --recursive git://github.com/foo/bar.git
cd bar

Zaten klonlanmış repo, ya da Git eski sürümleri için, sadece kullanın:

git clone git://github.com/foo/bar.git
cd bar
git submodule update --init --recursive

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • lilstevie89

    lilstevie89

    25 Mart 2011
  • My Name Is Jeff

    My Name Is J

    26 ŞUBAT 2008
  • REK Roth Productions

    REK Roth Pro

    8 Ocak 2011