`
aigo
  • 浏览: 2537829 次
  • 性别: Icon_minigender_1
  • 来自: 宜昌
社区版块
存档分类
最新评论

[git]执行remote add时报错:fatal: Not a git repository

git 
阅读更多

 

执行git remote add命令时报这个错误:

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

 

原因:

当前所在的目录不是一个git目录,要么切换目录到你想添加的git目录下,或者在当前目录下初始化一个git目录:git init

 

 

 

分享到:
评论

相关推荐

    码云出现错误git@gitee.com: Permission denied (publickey). fatal: Could not read from remote repository. P

    第一步 重新生成ssh ssh-keygen -t rsa -C “这里需要填写邮箱。我填写的是我的绑定主邮箱。我想其他邮箱也是可以的,只不过我没有测试。” 第二步 ...最后输入ssh -T git@gitee.com 即可 作者:亦圻

    GCMW-1.20.0.exe.rar

    解决 git 报错问题。fatal: HttpRequestException encountered. ...Error encountered while pushing to the remote repository: Git failed with a fatal error. fatal: HttpRequestException encountered.

    error: RPC failed; result=18, HTTP code = 200 fatal: The remote end hung up unexpectedly

    error: RPC failed; result=18, HTTP code = 200 fatal: The remote end hung up unexpectedly fatal: 过早的文件结束符(EOF) ...Try running the command below in the remote repository if error is fatal: inde

    Jenkins拉代码提示端口错误

    fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn...

    解决 github项目clone报错 Failed connect to github.com:443; Connection

    起因:npm构建时报错 npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git npm ERR! npm ERR! fatal: unable to access '...

    GCMW-1.20.0.rar

    解决vs2019提交代码到github报错问题。 Error encountered while pushing to the remote repository: Git failed with a fatal error. fatal: HttpRequestException encountered.

    build-webos:webOS OSE构建层

    fatal: Not a git repository (or any parent up to mount parent). Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYTEM not set). 先决条件 在构建之前,您将需要一些工具。 如果您尝试在没有它们...

    AdditionGameMethodsArraysLoops

    fatal: Not a git repository (or any of the parent directories): .git D:\KLD_CS1_WorkSpace\AdditionGameMethodsArraysLoops>git init Initialized empty Git repository in D:/KLD_CS1_WorkSpace/...

    mern-itinerary

    例子: /应该改为/contacts不是/通过输入git status确认您尚未在github存储库中: 好的: fatal: not a git repository (or any of the parent directories): .git错误/移动到计算机上的其他位置On branch ...

    Centos7 gitlab-ci shell使用git pull拉取代码出错原因

    在自动化shell中执行了:git pull, 出现如下错误: Running with gitlab-runner 12.7.1 (003fe500) on api deploy xLVW27yp Using Shell executor... Running on VM_222_128_centos... Fetching changes with git ...

    matlab滤波源码-mrpt:移动机器人编程工具包(MRPT)

    matlab过滤源码MRPT项目 1.简介 移动机器人编程工具包(MRPT)提供了针对移动...add-apt-repository ppa:joseluisblancoc/mrpt # develop branch #sudo add-apt-repository ppa:joseluisblancoc/mrpt-stable # master

Global site tag (gtag.js) - Google Analytics