fatal: Not a git repository (or any of the parent directories)
来源:互联网 发布:理财软件哪个口碑好 编辑:程序博客网 时间:2024/05/18 01:20
当从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”
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”
再次去编译就不会有问题了。
原文:
http://blog.csdn.net/freeape/article/details/47858527
0 0
- 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
- Pixhawk---fatal: Not a git repository (or any of the parent directories)
- fatal: Not a git repository (or any of the parent directories):
- 进程间的通信方式总结
- C#当窗体大小改变时,窗体中的控件大小也随之改变
- Linux 之文件权限
- 多方位拓展之路:监控平台MongoDB实践
- Android设计-UI设计师不可不知的安卓屏幕知识
- fatal: Not a git repository (or any of the parent directories)
- 解决JQuery checkbox的attr(checked)一直为undefined问题
- Python Intro
- 公司难做的很
- 判断Java实体对象为空
- Angular2 指令—路由指令
- python 计算MD5范例
- RobotFramework初识
- Java-------华为机试-------字符串分隔