fatal: Not a git repository (or any of the parent directories): .git
来源:互联网 发布:电脑连接摄像头软件 编辑:程序博客网 时间:2024/05/16 11:28
第一次用git,遇到这个错误提示,原来是这样的:
fatal: Not a git repository (or any of the parent directories): .git
This tells you that the directory you're in is not a git repository. Before you can add remote servers, commit things and so you must have a git repository created.
In a git repository there's a directory (which can be hidden) named .git
. It contains metadata on the repository and all the data regarding the checked files.
To create it type git init
in the directory you wish to have a git repository. Then you could add remote servers and perform operations on it.
1.fatal: Not a git repository (or any of the parent directories): .git
出现这个问题后,发现其实是在本系统下没有找到一个.git这样的目录,所以在终端下使用git --help命令,显示了其主要的一些命令参数,发现一个参数是init:
2.init Create an empty git repository or reinitialize an existing one
执行git init之后,然后再重新编译,这个问题就被解决了。这里要注意的一点是,和svn不一样,svn不需要自己使用命令来创建自己的资源库,而git需要自己使用命令手动创建,具体.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
- 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):
- 我为什么要创建帮创业者找合伙人的缘创派(ycpai.com)?
- 另类的package-info.java文件探讨
- 搭建Maven开发环境
- Axure & svn 共享工作教程
- windows下mysql忘记root密码的解决方法
- fatal: Not a git repository (or any of the parent directories): .git
- 数据库厂商发展历史之国产数据库综述(8. 国产数据库)
- 备忘 工具环境及其他
- C# ASP.NET 学习记录
- 10g RAC TAF介绍
- 执行cp命令时提示cp: 略过目录
- ViewPager使用详解
- ASUS华硕笔记本Windows 7驱动光盘大全~
- 自定义类加载器