该库未通过 git 子树添加到 git

The library is not added to the git via the git subtree

我通过 git 子树将 GLFV 库添加到项目中,但是出现了这个警告“它看起来像你的 git 安装或你的 git-子树安装被打破”。还描述了几个原因可能是:

我检查了link到库是正确的,文件“git-subtree”在那里,为什么会弹出错误。

看来 git 子树安装已损坏,问题是 Git for Windows。

我可以从以下位置下载旧版本:https://github.com/git-for-windows/git/releases/download/v2.31.0.windows.1/Git-2.31.0-64-bit.exe

这为我解决了这个问题,我们正在等待修复。 git 子树错误有一个 issue on Git for Window's GitHub

我收到以下错误:

您的 git 安装或 git-subtree 安装似乎已损坏。

It looks like either your git installation or your git-subtree installation is broken.

Tips:
 - If `git --exec-path` does not print the correct path to
   your git install directory, then set the GIT_EXEC_PATH
   environment variable to the correct directory.
 - Make sure that your `git-core\git-subtree` file is either in your
   PATH or in your git exec path (`C:/Program Files/Git/mingw64/libexec/git-core`).
 - You should run git-subtree as `git core\git-subtree`,
   not as `git-core\git-subtree`.

如果您不介意,请采纳此作为答案。