git使用中的一些问题
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代码仓库迁移(从github到oschina)
我的代码迁移相关命令(从github到coding):
559 git clone https://github.com/jingzhishen/thirdparty.git
560 ls
561 cd thirdparty/
562 l
563 ls
564 git log
565 ls
566 cd ..
567 ls
568 cp thirdparty/ thirdparty.bak -rf
569 ls
570 cd thirdparty
571 ls
572 git br
573 git remote set-url origin https://git.coding.net/jingzhishen/thirdparty.git
574 git add .
575 git st
576 git log
577 ls
578 git st
579 git ci -a -m "migrate commit."
580 git push -u origin master
581 git pull
方法:
git reset --hard <commit_id>
git push origin HEAD --force
aa
git使用中的一些问题的更多相关文章
- git使用中遇到的常见问题
.gitignore 中添加的文件不能被忽略掉 这是因为我们误解了 .gitignore 文件的用途,该文件只能作用于 Untracked Files,也就是那些从来没有被 Git 记录过的文件(自添 ...
- git使用中checkout生成临时br的问题(吓出一身冷汗啊)
git中几天前漫不经心的使用了git checkout ver_hash的命令,结果push到远程库都提示everything is up-to-date,实际神马都没提交上去啊!但看本地log中的确 ...
- Android中 Git 使用中几个概念
1.仓库(版本库) 版本库又名仓库,英文名repository,你可以简单理解成一个目录,这个目录里面的所有文件都可以被Git管理起来,每个文件的修改.删除,Git都能跟踪,以便任何时刻都可以追踪历史 ...
- git使用中出现的错误
因同时有两个git账户,之前登录了git A 用户在使用了 1. 长期存储密码 git config --global credential.helper store 之后在git B 账 ...
- Git 使用中显示“Another git process seems to be running in this repository...”问题解决
一.引言:问题回忆 这几天,我同时在使用vs2017自带的git管理工具和git bash命令行工具对于同一个工作区进行了git操作管理. 其中,当我在vs2017中对文件进行了更改,突然脑洞大开,想 ...
- 【ASK】git使用中出现Permission denied (publickey).
好久没有用git了,今天突然执行了一下 $git submodule update --init --recursive =============================== 结果出现如下提 ...
- git使用中的一些命令及心得
Git 与 SVN 区别点: 1.Git 是分布式的,SVN 不是:这是 Git 和其它非分布式的版本控制系统,例如 SVN,CVS 等,最核心 的区别. 2.Git 把内容按元数据方式存储,而 SV ...
- Git 使用中遇见的各种问题及解决办法
一.修改提交代码的用户名以及提交邮箱,(推荐使用方法2,一劳永逸) 方法1(修改.git/config文件): step1:进入工程.git文件夹 step2:vim config step3:末行添 ...
- git使用中的问题
一.github ssh_exchange_identification: read: Connection reset by peer 和电脑环境有关,检查防火墙关了没有,是不是杀毒软件.安全卫士的 ...
随机推荐
- 一个Apache安装多个版本的PHP
我的服务器centos6.5安装了xampp,php6.5版本的.已经有好几个网站在上面运行了,但是后面要安装该死的ecshop,无奈要装php5.2,因此就想如何能在一个apache上安装多个版本的 ...
- fetch初步了解
前言 对于ajax请求,我们不仅可以使用XMLHTTPrequest,还可以使用fetch 正文 promise 在使用ajax时,如果想要使得第二个ajax请求调用第一个ajax请求,就得使用在on ...
- http://download.eclipse.org/technology/m2e/releases install error
Can you try running Eclipse as Admin and try this again?. Let me know how that goes. what is the upd ...
- D - Matrix Multiplication ZOJ - 2316 规律题
Let us consider undirected graph G = which has N vertices and M edges. Incidence matrix of this grap ...
- 【BZOJ 3238】【AHOI 2013】差异
http://www.lydsy.com/JudgeOnline/problem.php?id=3238 后缀数组裸题但是\(5\times 10^5\)貌似常数有点大就过不了?(我的sa常数那么大想 ...
- [NOIP模拟赛] seq
seq 试题分析 介绍一种方法叫做回滚莫队. 回滚莫队是一种只加不删的莫队. 首先处理\(l,r\)都在同一个块内的询问,暴力即可. 然后对于\(l,r\)不同在一个块,我们将左端点挂在其所在的块. ...
- 【拓扑排序】Genealogical tree
[POJ2367]Genealogical tree Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5696 Accep ...
- HDU 6039 Gear Up(线段树+并查集)
[题目链接] http://acm.hdu.edu.cn/showproblem.php?pid=6039 [题目大意] 给出一些齿轮,有些齿轮是边相连,也就是拥有相同的线速度, 有的齿轮是轴相连,也 ...
- 【动态规划去除冗余】NOIP2010-乌龟棋
[题目大意] [思路] 最简单的思路是五维数组,但是当前走到的步数由已经取到的卡片决定,所以只需要四维.本来想要改一个滚动数组的,但是好像没有滚起来,算了(ノ`Д)ノ. 在学校要晚自习到21:15,回 ...
- [bzoj1012](JSOI2008)最大数maxnumber(Fenwick Tree)
Description 现在请求你维护一个数列,要求提供以下两种操作: 1. 查询操作.语法:Q L 功能:查询当前数列中末尾L个数中的最大的数,并输出这个数的值.限制:L不超过当前数列的长度. 2. ...