git clone 失败问题

git clone 失败问题

1、问题现象

今天在使用git下载qemu源代码的时候, git clone git://git.qemu.org/qemu.git 总是提示

Cloning into ‘qemu’…
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.

这里写图片描述

2、问题分析

此问题断断续续解决了两天, 并且再次确认github以及本地git配置都是正确的, 始终没找到真正的解决办法,倍感郁闷。
今天在https://stackoverflow.com/questions/32238616/git-push-fatal-origin-does-not-appear-to-be-a-git-repository-fatal-could-n上偶然看到一个方法, 使用git remote -v 来 check that your origin is set by running。 在git clone环境下输入git remove -v,打印如下:

kitty@kitty-virtual-machine:/mnt/hgfs/Linux/GIT$ git remote -v
fatal: Not a git repository (or any parent up to mount point /mnt/hgfs)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

这里写图片描述

这个提示很明显, fatal: Not a git repository (or any parent up to mount point /mnt/hgfs) 。

我的git clone是在虚拟机上运行的, /mng/hgfs 是我挂载在虚拟机上的一个外接硬盘, 在/mng/hgfs 下执行git clone居然会失败!

3、解决办法

切换到~/Document下,再次 执行git clone git://git.qemu.org/qemu.git,成功执行。
这里写图片描述

发布了2 篇原创文章 · 获赞 0 · 访问量 1万+
展开阅读全文

Remote host closed connection during handshake: SSL peer shut down incorrectly

01-17

[ERROR] Failed to execute goal on project hadooptrain: Could not resolve dependencies for project com.immoc.hadoop:hadooptrain:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.apache.hadoop:hadoop-client:jar:2.6.0-cdh5.7.0: Failed to read artifact descriptor for org.apache.hadoop:hadoop-client:jar:2.6.0-cdh5.7.0: Could not transfer artifact org.apache.hadoop:hadoop-client:pom:2.6.0-cdh5.7.0 from/to cloudera (https://repository.cloudera.com/artifactory/cloudera-repos/): Remote host closed connection during handshake: SSL peer shut down incorrectly -> [Help 1] <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.immoc.hadoop</groupId> <artifactId>hadooptrain</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>hadooptrain</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <repositories> <repository> <id>cloudera</id> <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url> </repository> </repositories> <dependencies> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifactId> <version>2.6.0-cdh5.7.0</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project> 大神们帮忙看一下,怎么处理 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览