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
bulunangit@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
.gitmodule
dosyanızı yeni bir URL kullanmak için değiştiringit submodule sync
çalıştırın
Daha kapsamlı bilgi başka bir yerde bulunabilir:
Bunu Paylaş:
Nasıl dış repo bir submodule kullanmak...
Nasıl başka bir repo için github üzeri...
Nasıl bir dize başka bir dize içeriyor...
Bir dize kontrol etmek için nasıl &quo...
Nasıl yerel bir git repo aslen klonlan...