git-fatal: Not a git repository (or any of the parent directories): .git
来源:互联网 发布:window python编译器 编辑:程序博客网 时间:2024/05/16 06:59
之前都是使用windows图形界面操作git,简单上手,今天心血来潮打算使用下git bash,没想到出师不利,执行git命令报错fatal: Not a git repository (or any of the parent directories): .git
1、如果之前你已经创建了本地代码仓库,确保你是在当初创建仓库的目录下执行git命令,一般如果这个目录是代码仓库的话,目录下会有.git目录
2、说明你还没有初始化代码仓库
初始化代码仓库步骤:
如果使用当前目录作为代码仓库,直接执行
git init
如果需要指定目录(如E:\data)作为代码仓库,执行
git init E:\data
如果当前目录下有几个文件想要纳入版本控制,需要先用 git add 命令告诉 Git 开始对这些文件进行跟踪,然后提交
git add *.pygit commit -m '第一次提交'
然后clone代码,以下几条命令都可以
格式:git clone git仓库 本地目录
git clone http://github.com/CosmosHua/locate new
git clone http://github.com/CosmosHua/locate.git new
git clone git://github.com/CosmosHua/locate new
git clone git://github.com/CosmosHua/locate.git new
然后切换到目录下执行git命令
阅读全文
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
- 【Git初探】Git中fatal: Not a git repository (or any of the parent directories): .git错误的解决办法
- Pixhawk---fatal: Not a git repository (or any of the parent directories)
- python3 datetime() 模块之 date、time 类
- Mysql处理海量数据时的一些优化查询速度方法
- httpie 命令行工具使用记录
- jQuery 获取当前节点的html包含当前节点的方法
- 数据库参数调优--自动更新统计信息
- git-fatal: Not a git repository (or any of the parent directories): .git
- 最佳图标尺寸
- 传值流程
- android Viewpager+TabLayout+Fragment遇到的问题记录
- java前后台之间传值的几种方式
- ubuntu下修改mysql的编码
- http https ftp tcp的区别
- Android普通截屏(不包括状态栏内容但有状态栏占位)
- 【Hadoop】HDFS的运行原理