Pixhawk---fatal: Not a git repository (or any of the parent directories)
来源:互联网 发布:网络音乐产品黑名单 编辑:程序博客网 时间:2024/04/30 00:32
当从github.com上面下载下了Firmware后,无意中删除了Firmware目录下的.git文件夹,再去编译就会出现:
fatal: Not a git repository (or any of the parent directories)
的错误。这是由于本地版本管理仓库被删除了,需要重新初始化仓库,建立新的仓库:
git init
再次去编译又会出现如下错误:
fatla: bad default revision ‘HEAD’
这是由于仓库里没有任提交在里面,所以它会报这个错。再执行下面的命令:
查看仓库状态:
git status
添加本地工程所有文件到仓库中:
git add -A
提交到仓库:
git commit -m “custom your message”
再次去编译就不会有问题了。
0 0
- Pixhawk---fatal: Not a git repository (or any of the parent directories)
- git错误:fatal: Not a git repository (or any of the parent directories): .git
- git错误:fatal: Not a git repository (or any of the parent directories): .git
- 【Git】fatal: Not a git repository (or any of the parent directories): .git
- git错误:fatal: Not a git repository (or any of the parent directories): .git
- git:fatal: Not a git repository (or any of the parent directories): .git
- git错误:fatal: Not a git repository (or any of the parent directories): .git
- Git错误提示之:fatal: Not a git repository (or any of the parent directories): .git
- Git错误提示之:fatal: Not a git repository (or any of the parent directories): .git
- Git错误提示:fatal: Not a git repository (or any of the parent directories): .git
- git使用fatal: Not a git repository (or any of the parent directories): .git
- git-fatal: Not a git repository (or any of the parent directories): .git
- fatal: Not a git repository (or any of the parent directories): .git
- fatal: Not a git repository (or any of the parent directories): .git
- fatal: Not a git repository (or any of the parent directories): .git
- fatal: Not a git repository (or any of the parent directories): .git
- cocoapods更新失败fatal: Not a git repository (or any of the parent directories): .git
- fatal: Not a git repository (or any of the parent directories):
- [javascript-正则表达式]String.replace()用法详解
- pat(B)1017. A除以B(java大数)
- bzoj 2208: [Jsoi2010]连通数
- iphone 模拟器键盘出不来的快捷键
- 第91讲:Akka第一个案例动手实战架构设计
- Pixhawk---fatal: Not a git repository (or any of the parent directories)
- Js apply()使用详解
- Ubuntu备份还原
- Shell编程之Shell变量学习总结
- 2015 Top10 最成功的网页设计趋势(业界主流设计思想)
- PowerDesigner实体模型CDM中关于建立Entity之间关系的备忘
- Qt:解决使用png图片时,报错libpng warning: iCCP: known incorrect sRGB profile的问题
- python文件读写模式解析
- hdu 4548(美素数)