asciidoc вместо markdown
This commit is contained in:
16
wiki/Prog/Git/Git замена адреса подмодуля.adoc
Normal file
16
wiki/Prog/Git/Git замена адреса подмодуля.adoc
Normal file
@ -0,0 +1,16 @@
|
||||
= Git: замена адреса подмодуля
|
||||
:category: Программирование
|
||||
:tags: программирование, git,
|
||||
|
||||
Если у подмодуля, находящегося в каталоге `thirdparty/example` нужно
|
||||
заменить адрес синхронизации и имя используемой ветки, то в каталоге с
|
||||
файлом `.gitmodules`, в котором содержится информация об этом подмодуле,
|
||||
нужно выполнить команды:
|
||||
|
||||
[source,sh]
|
||||
----
|
||||
git config --file=.gitmodules submodule.thirdparty/example.url https://github.com/username/ABC.git
|
||||
git config --file=.gitmodules submodule.thirdparty/example.branch new-branch-name
|
||||
git submodule sync --recursive
|
||||
git submodule update --init --recursive --remote
|
||||
----
|
Reference in New Issue
Block a user