git -C <other-git-repo-path> [git-command] 指定其它路径的仓库 执行命令

git -C <other-git-repo-path> [git-command] 指定其它路径的仓库 执行命令

注意,-C 要在命令之前

例如:

  git -C d:/testRepo status

原文地址:https://www.cnblogs.com/ibingshan/p/10863177.html