Прочитав Git - git-submodule Documentation , я решил импортировать два файла из моего предыдущего проекта в корневой каталог моего нового проекта, потому что я не хочу вручную синхронизировать эти два файла.Однако возникает ошибка при выполнении следующей команды:
$ git submodule add -b master -f --name latexci -- https://github.com/donizyo/LaTeX-Travis.git .
fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
usage: git submodule--helper clone [--prefix=<path>] [--quiet] [--reference <repository>] [--name <name>] [--depth <depth>] --url <url> --path <path>
--prefix <path> alternative anchor for relative paths
--path <path> where the new submodule will be cloned to
--name <string> name of the new submodule
--url <string> url where to clone the submodule from
--reference <repo> reference repository
--dissociate use --reference only while cloning
--depth <string> depth for shallow clones
-q, --quiet Suppress output for cloning a submodule
--progress force cloning progress
Я использую Git Bash 2.19.1.windows.1 для выполнения команд git.