SORU
18 Ocak 2013, Cuma


Nasıl başka bir repo ile git submodule değiştiririm?

Nasıl farklı bir git repo ile git submodule değiştiririm?

Özellikle, bir submodule var:

  • git gösteren ./ExternalFrameworks/TestFramework bulunan git@github.com:userA/TestFramework.git repo
  • Şimdi git@github.com:userB/TestFramework.git işaret etmek istiyorum.

Sorun bu yöntem ile submodule sildiğimde here, sonra yeniden komutunu kullanarak nitelendirdi

git submodule add git@github.com:userB/TestFramework.git

Bu hata alıyorum:

A git directory for 'ExternalFrameworks/TestFramework' is found locally with remote(s):
  origin    git@github.com:userA/TestFramework.git
If you want to reuse this local git directory instead of cloning again from
  git@github.com:userB/TestFramework.git
use the '--force' option. If the local git directory is not the correct repo
or you are unsure what this means choose another name with the '--name' option.

CEVAP
18 Ocak 2013, Cuma


Eğer konum (URL) submodule değişmiş ise, o zaman sen-ebilmek söylemek

  1. .gitmodule dosyanızı yeni bir URL kullanmak için değiştirin
  2. git submodule sync çalıştırın

Daha kapsamlı bilgi başka bir yerde bulunabilir:

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Ampisound

    Ampisound

    12 Kasım 2006
  • Associated Press

    Associated P

    18 EYLÜL 2006
  • Elly

    Elly

    3 EKİM 2005