执行git命令时出现fatal: 'origin' does not appear to be a git repository错误

在执行git pull origin master时出现:

  fatal: ‘origin‘ does not appear to be a git repository

  fatal: Could not read from remote repository.

  Please make sure you have the correct access rights and the repository exists

解决方案:

git remote add origin [email protected]:bx_reader/bx-reader-api.git

将关联远程仓库为origin

执行git命令时出现fatal: 'origin' does not appear to be a git repository错误

原文地址:https://www.cnblogs.com/dingxu/p/9032014.html

时间: 2024-07-29 18:38:55

执行git命令时出现fatal: 'origin' does not appear to be a git repository错误的相关文章

FW 执行Git命令时出现各种 SSL certificate problem 的解决办法

比如我在windows下用Git clone gitURL 就提示  SSL certificate problem: self signed certificate 这种问题,在windows下出现得频率高些.我估计主要是git本身就是基于linux开发的,在windows上,容易缺失一些环境. 参考了一些文章,解决方法其实就是“直接不管ssl证书的事儿”-_-||| 方法如下: 1.创建临时环境变量: windows上命令行输入: [plain] view plain copy set GI

fatal:'origin' does not appear to be a git repository fatal:Could not read from remote repository

天gitlab中遇到的问题: 当 git push origin branch_name时遇到报错如下: fatal:'origin' does not appear to be a git repository fatal:Could not read from remote repository 原因: 本地分支和远程分支断开连接 解决方法: cd 本地分支里1.git branch                ——*master   只显示master 然后查看是否从上游拉了2.git

执行sudo命令时command not found的解决办法

问题的原因: 在编译sudo包的时候默认开启了- -with-secure-path选项. 方法1: sudo vim /etc/sudoers,并在文件内增加这么一行:Defaults secure_path="/bin:/usr/bin:/usr/local/bin:-", 把要用的命令path包括进去. 在非root下,可以执行很多命令. 在root命令下,却提示 command not found.例如 使用vim 现象: 当我们用sudo来执行cd.ls等命令时,会出现com

转载:Linux下执行SVN命令时提示错误:Valid UTF-8 data

在Linux下执行svn add *时出现如下错误: svn:  Valid UTF-8  data(hex: 4b)followed by invalid UTF-8 sequence(hex:  fc 63 68  65) 出现这个错误是因为svn库里有文件的名字不是utf-8编码的,这种情况对于中文来说很常见.比如在自己的windows上建了一个中文名字的文件,就会使这种情况. 几经周折,才找到解决办法: 首先,执行命令: ls * | file -/dev/stdin:  ISO-885

GitHub# fatal: 'origin' does not appear to be a git repository

1. fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 翻译: 致命:"origin"不是一个 git 存储库 致命:无法读取远程存储库 请确定你有正确的访问权力,并且 存储库存在

git执行pull命令时,报错

在图形界面中,执行拉取操作时,出现下面的错误. You asked to pull from the remote 'origin', but did not specifya branch. Because this is not the default configured remotefor your current branch, you must specify a branch on the command line. 解决办法: Edit your .git/config [bra

执行Git命令时出现各种 SSL certificate problem 的解决办法

比如我在windows下用git clone gitURL 就提示  SSL certificate problem: self signed certificate 这种问题,在windows下出现得频率高些.我估计主要是git本身就是基于linux开发的,在windows上,容易缺失一些环境. 参考了一些文章,解决方法其实就是“直接不管ssl证书的事儿”-_-||| 方法如下: 1.创建临时环境变量: windows上命令行输入: set GIT_SSL_NO_VERIFY=true git

git review时出现fatal: ICLA contributor agreement requires current contact information.错误

使用git review时出现错误: fatal: ICLA contributor agreement requires current contact information. Please review your contact information: https://review.openstack.org/#/settings/contact fatal: Could not read from remote repository. Please make sure you have

执行sudo命令时的提示语,如何修改?

如图所示,执行sudo命令,提示语(有中文和英文两个版本): 上面的提示内容是sudo软件原生的内容. 使用下面的方法,有的时候是可行的.sudo -p '提示语' 命令 如果要修改sudo软件原生的提示内容,只有重新编译软件. 屏蔽提示的方法:https://superuser.com/questions/500119/keeping-the-fancy-sudo-warning-forever Create a file inside /etc/sudoers.d/ You can use