Answer the question
In order to leave comments, you need to log in
How to update a Git submodule if the repository and working directory are in different locations?
The repository and working-tree are in different directories, there is a submodule in the repository, and it can't be updated.
I do like this:
$ git --git-dir=/var/www/colurgemgemru/data/colur.git --work-tree=/var/www/colurgemgemru/data/www/colur.gemgem.ru/ submodule update
fatal: working tree '/var/www/colurgemgemru/data/www/colur.gemgem.ru/' already exists.
Clone of 'https://github.com/WordPress/WordPress.git' into submodule path 'wp' failed
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question