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 存储库

致命:无法读取远程存储库

请确定你有正确的访问权力,并且 存储库存在

解决方案:  1. 首先,检查你的起源是设定的运行
                              git remote -v
                           显示
                         orgin    [email protected]:chaorwin/chaorwin.git (fetch)
                         orgin    [email protected]:chaorwin/chaorwin.git (push)

"origin" 不存在

2.重命名它,或改变URL,删除它,然后添加正确的一个。

git remote remove orgin

3. 增加一个

git remot add origin [email protected]:chaorwin/chaorwin.git

4. git push origin master

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

原文地址:https://www.cnblogs.com/itzfz/p/9384407.html

时间: 2024-10-08 00:34:03

GitHub# fatal: 'origin' does not appear to be a git repository的相关文章

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

执行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 protec

git报错:'fatal:remote origin already exists'怎么处理?附上git常用操作以及说明。

git添加远程库的时候有可能出现如下的错误, 怎么解决? 只要两步: 1.先删除 $ git remote rm origin 2.再次执行添加就可以了. ----------------------------------------------git常用操作------------------------------------------------ 说明,以下整理来自廖雪峰大神的<git教程>. 各位童鞋要下载git但是网速不给力的,可以从这里下载:https://pan.baidu.

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

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

我用 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;

解决: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就可以了!

新目录下使用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

getting “fatal: not a git repository: &#39;.&#39;” when using post-update hook to execute &#39;git pull&#39; 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