首页 > 其他 > 详细

git使用中的一些问题

时间:2016-03-18 23:04:51      阅读:463      评论:0      收藏:0      [点我收藏+]

ubuntu14.04中从服务器下代码出错如下:

yingc@yingc:/media/sf_yingc/work/gitcode/androidtv$ repo sync box
The authenticity of host ‘[git.nationalchip.com]:29418 ([218.75.120.99]:29418)‘ can‘t be established.
RSA key fingerprint is 05:61:57:37:8c:7a:59:35:9e:9c:f0:d8:93:bf:d6:ea.
Are you sure you want to continue connecting (yes/no)? The authenticity of host ‘[git.nationalchip.com]:29418 ([218.75.120.99]:29418)‘ can‘t be established.
RSA key fingerprint is 05:61:57:37:8c:7a:59:35:9e:9c:f0:d8:93:bf:d6:ea.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘[git.nationalchip.com]:29418,[218.75.120.99]:29418‘ (RSA) to the list of known hosts.

Host key verification failed.
fatal: Could not read from remote repository.

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

之后我将git升级并repo init -b 到指定分支就好了。(mac下按照该方法还是不能下载代码-》mac下没有upgrade这一步)

具体原因尚不清楚

yingc@yingc:/media/sf_yingc/work/gitcode/androidtv$ git --version
git version 1.9.1
yingc@yingc:/media/sf_yingc/work/gitcode/androidtv$ sudo apt-get upgrade git
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
正在对升级进行计算... 完成
git 已经是最新的版本了。
下列软件包的版本将保持不变:
linux-generic-lts-wily linux-headers-generic-lts-wily
linux-image-generic-lts-wily
下列软件包将被升级:
bind9-host ca-certificates cpio dnsutils firefox glib-networking
glib-networking-common glib-networking-services ifupdown libbind9-90
libdns100 libgnutls-openssl27 libgnutls26 libgraphite2-3 libisc95 libisccc90
libisccfg90 libjasper1 liblwres90 libnss3 libnss3-1d libnss3-nssdb libnuma1
liboxideqt-qmlplugin liboxideqtcore0 liboxideqtquick0 libperl5.18
libpixman-1-0 libsmbclient libssh-4 libssl1.0.0 libwbclient0 linux-libc-dev
openssl oxideqt-codecs perl perl-base perl-modules pm-utils python-samba
samba-common samba-common-bin samba-libs smbclient usbutils
升级了 45 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 3 个软件包未被升级。
需要下载 71.9 MB/89.3 MB 的软件包。
解压缩后会消耗掉 4,016 kB 的额外空间。
您希望继续执行吗? [Y/n] y

git使用中的一些问题

原文:http://www.cnblogs.com/jingzhishen/p/5293679.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!