解决: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上传android项目时发现 git add file添加文件时出现这样错误: fatal: Not a git repository (or any of the parent directories): .git 提示说没有.git这样一个目录,解决办法如下: 接着在下一行直接输入git init就可以了!

时间: 2024-08-04 14:11:45

解决: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

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 This tells you that the directory you're in is not a git repository. Before you can add

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 add file添加文件时出现这样错误: fatal: Not a git repository (or any of the parent directories): .git 提示说没有.git这样一个目录,解决办法如下: git init就可以了!

git远程库与本地联系报错:fatal: Not a git repository (or any of the parent directories): .git

在github上新建了一个仓库,然后相与本地的仓库联系起来 $ git remote add origin https://github.com/lizhong24/mysite2.git fatal: Not a git repository (or any of the parent directories): .git 总是报这个错 产生原因:一般是没有初始化git本地版本管理仓库,所以无法执行git命令 解决方法:操作之前执行以下命令行: git init 然后执行一下git statu

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

在看书 FlaskWeb开发:基于Python的Web应用开发实战 时,下载完源码后 git clone https://github.com/miguelgrinberg/flasky.git 试着 切换到 提交历史 1a, $ git checkout 1a,出现error: fatal: Not a git repository (or any of the parent directories): .git 这个提示表明现在不在一个git repository目录下,需要切换到flask

WIN8下git报错解决,fatal: Not a git repository (or any of the parent directories): .git

报错是因为WIN8中默认的系统账户没有获得超级管理员权限 在win8中如何获得管理员权限步骤: 按WIN+R,运行对话框中输入gpedit.msc,开启组策略,然后一步步地在“计算机配置”-“Windows 设置”-“安全设置”-“安全选项”,找到右侧的“用户账户控制:以管理员批准模式运行所有管理员”这个项,你会看到这个项默认是启用的,把它设成禁用.如下图所示: 然后要重启计算机!重启后,你就获得了至高无上的管理员权限了!

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

今天准备在win10上面安装git,想把代码发布到github中,按照教程的方法一步一步下来,当配置完ssh和用户名,邮箱之后,发现下拉不下来github中的代码,出现如下错误. 说是没有发现仓储,很是郁闷,通过ssh –T [email protected]发现连接是通的. 之后发现原来是教程顺序错误了,应该现在文件夹中git init让git标记此文件夹为版本库就好了. 要是嫌配置麻烦,直接clone下,就OK,就可以直接进行代码的编辑之后提交就可以.

git:not a git repository (or any of the parent directories)

我用git add file添加文件时出现了这样错误: fatal: Not a git repository (or any of the parent directories): .git 提示说没有.git这样一个目录,解决办法如下: git init就可以了! 也就是说,在命令行敲入git init回车之后,再重新执行添加文件的命令即可. 如下图所示: 从图中可以看出,问题已经解决. 原文地址:https://www.cnblogs.com/curo0119/p/9404724.html

getting “fatal: not a git repository: '.'” when using post-update hook to execute 'git pull' on another repo

Here is the script that ultimately worked. I think the bit I was originally missing that prevented it from working remotely was the unset GIT_DIR #!/bin/shcd /path/to/working-copy/ || exitunset GIT_DIRgit pull repo branch exec git-update-server-info

git 解决fatal: Not a git repository

我用 git remote add origin [email protected]:michaelliao/learngit.git 添加远程库时提示: fatal: Not a git repository (or any of the parent directories): .git 提示说没有.git这样一个目录, 解决办法如下: 当时发现自己所在目录并非git初始化库目录,所以跳转到git库,重新运行ok;