git 积累

来源:互联网 发布:nginx中文 编辑:程序博客网 时间:2024/05/16 01:59

·git clone 分支

git clone -b 分支名 资源名


·git 之公钥私钥

http://blog.csdn.net/caohonghong123/article/details/52515920



·github文件太大问题:If you trust this host, enter "y" to add the key to

Administrator@PC* MINGW64 /d/WorkData/gittest
$ git clone -b test.x-dev git@github.com:*.git
Cloning into '*'...
remote: Counting objects: 147417, done.
remote: Compressing objects: 100% (42/42), done.
Connection reset by 192.30.255.113 port 22.88 MiB | 860.00 KiB/s
ffatal: The remote end hung up unexpectedly
atal: early EOF
fatal: index-pack failed-


解决:文件太大了,还是离线导入吧

·公私钥修改再确认问题:If you trust this host, enter "y" to add the key to

git -c diff.mnemonicprefix=false -c core.quotepath=false clone --branch test-1.x-dev --recursive 
git@github.com:*.git D:\WorkData\*-1.x-dev20170720
Cloning into 'D:\WorkData\*-1.x-dev20170720'...
The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 **********
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on 
connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If 
you do not trust this host, press Return to abandon the
connection.
解决:修改了ssh验证吗,使用命令行模式实现一个操作即可,比如clone一个小的分支,需要输入yes确认安全即可再次使用客户端了

http://www.cnblogs.com/nylcy/p/6569284.html

·https下载网速不好问题问题:fatal: early EOF

git -c diff.mnemonicprefix=false -c core.quotepath=false clone --branch *-1.x-dev --recursive 
https://github.com/beijing-acsm/*.git 
 D:\WorkData\*-1.x-dev20170720
Cloning into 'D:\WorkData\*-1.x-dev20170720'...
fatal: early EOF

解决:换用git@***不要用https://***