PhpStorm - 如何在一个项目中 pull 多个 GIT 存储库

标签 php git phpstorm

假设我在 PhpStorm IDE 中有一个项目,其中有许多 Git 存储库(1 个框架模块 = 1 个存储库)。我只想问一下如何一次从所有这些存储库中 pull 更改?

我知道,我可以在 repo 上大量提交或推送更改,但是在 pull 时,它要求我提供单个 Git root。

最佳答案

你可以:

  • 使用子模块(这可能很棘手),到 pull all subrepos as submodules

    git submodule update --rebase --remote
    
  • 或将其编写为 in this gist

    find . -name .git -type d \
    | xargs -n1 -P4 -I% git --git-dir=% --work-tree=%/.. remote update -p
    

在这两种情况下,您都需要 declare an external toolExternal Tool page 上的 PhpStorm。

关于PhpStorm - 如何在一个项目中 pull 多个 GIT 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39033297/

相关文章:

sass - 为什么 PHPStorm 在 SASS map 上给我一个 "a term expected"错误?

php - 在符号后用空格格式化数字的内置方法

eclipse - 导入 Eclipse 时出现 "Invalid remote: origin"错误(m2eclipse、eGit)

git - "git add -A"和 "git add ."之间的区别

html - PhpStorm - HTML 5 样板代码片段

phpstorm - PhpStorm 2019.1 中缺少创建命令行启动器

PHP - 遍历 $_FILES 以检查文件类型

javascript - Jquery 查找 Active 类并替换该类

php + jqgrid + 导出到 excel

git push 尝试推送 git ls-files 中未列出的文件