gpt4 book ai didi

github - Mac 操作系统中致命的 : Not a git repository (or any of the parent directories): . git

转载 作者:行者123 更新时间:2023-12-02 05:57:01 26 4
gpt4 key购买 nike

我尝试了很多使用不同的方法来编译我的 ArduPilot(从 GitHub 获取此代码)代码。

  1. 使用 Eclipse
  2. 命令行

此代码是用C++语言编写的。

我只想创建一个 make 文件来获取 .hex 文件,但到处都有同样的问题

fatal: Not a git repository (or any of the parent directories): .git

我正在 Mac 操作系统中工作,那么如何避免出现该错误消息?

最佳答案

请确定:如果您创建文件,则不应在 .git/ 文件夹本身中创建,而应在其父文件夹中创建:

myrepo
yourfile <===
.git/

.git/ 文件夹包含代表您的 git 存储库的 git 数据/元数据。
父文件夹是 the working tree存储库的。

如果“myrepo”中没有 .git/ 文件夹,请输入 git init 。

关于github - Mac 操作系统中致命的 : Not a git repository (or any of the parent directories): . git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36675947/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com