git clone 时注意点】的更多相关文章

git clone时出现 error:inflate:data stream error(incorrect data check) fatal:serrious inflate inconsistency fatal:index-pack failed 经了解,此问题是遗留问题,之前是因为公司对gitlab服务器进行数据迁移而引起这种git clone失败的原因,现象非常奇怪,大部分project是可以clone的,小部分不行,有一些人clone没问题的,有些人就是不行,我被这个问题困扰了好久…
idea在使用git clone 时出现Filename too long的报错信息,使用如下命令就可以解决该问题:在 git bash命令模式下,运行命令 git config --global core.longpaths true 1 参考链接:https://blog.csdn.net/tangyajun_168/article/details/93245236  …
当项目过大时,git clone时会出现error: RPC failed; HTTP curl The requested URL returned error: Gateway Time-out的问题 解决方法很简单,在git clone时加上--depth=1即可解决 克隆的项目只包含最近的一次commit的一个分支,体积很小,即可解决文章开头提到的项目过大导致Timeout的问题,但会产生另外一个问题,他只会把默认分支clone下来,其他远程分支并不在本地,所以这种情况下,需要用如下方法…
环境: 在公司访问外网需要设置代理,另外,在公司局域网内架设了一台 GIT 服务器. 在使用 git clone 时,不能设置成 git 使用代理: git config --global http.proxy xx.xx.xx.xx:xx git config --global https.proxy xx.xx.xx.xx:xx 在使用 git clone 之前,需要设置环境变量: export GIT_SSL_NO_VERIFY=1 在使用 git clone 之前,需要对 git 作如下…
以HTTPS方式进行git clone时出现如下错误: 方法1:增大缓存 git config http.postBuffer 524288000 尝试无效: 方法2:配置git的最低速度和最低速度时间,单位(秒) git config --global http.lowSpeedLimit 0 git config --global http.lowSpeedTime 999999 多次尝试中有一次成功(原因未知). 方法3:改用SSH方式 尝试成功.…
首先命令行操作结果如下: root@zhiren-PowerEdge-T110-II:/zrun# git clone https://git.coding.net/xxxxxxxx/xxxx.git正克隆到 'anbu'...remote: Coding.net Tips : [You have no permission to access this repo.]fatal: unable to access 'https://git.coding.net/xxxxxxxx/xxxx.git…
由于是在java中执行cmd命令调用git clone,导致git读取不到用户的ssh key,需要设置环境变量Home为正确的用户路径: cmd /c set HOME=C:/Users/你的用户名&git clone…
git clone时报RPC failed; curl 18 transfer closed with outstanding read data remaining 错误 原因1:缓存区溢出 解决方法:命令行输入 git config http.postBuffer 524288000 执行上面命令如果依旧clone失败,考虑可能原因2:网络下载速度缓慢 解决方法:命令行输入 git config --global http.lowSpeedLimit 0 git config --globa…
一.环境 发行版:Ubuntu 18.04.1 LTS 代号:bionic 内核版本:4.15.0-30-generic 二.背景 git clone https://source.codeaurora.org/external/qoriq/qoriq-components/openwrt 输入以上命令后出现以下错误: warning: remote HEAD refers to nonexistent ref, unable to checkout 三.解决 3.1 git show-ref输…
看了好多资料终于搞定了git 中clone命令报错这个问题,废话不多说直接上步骤希望对大家有帮助. 1   删除.ssh文件夹(直接搜索该文件夹)下的known_hosts(手动删除即可,不需要git) 2   在下载好的Git中的bin目录下打开bash.exe输入命令ssh-keygen -t rsa -C "username" (注:username为你git上的用户名),如果执行成功.返回: Generating public/private rsa key pair.    …
答: 直接将https修改为http即可, 如: $ git clone https://github.com/Jello_Smith/my-example.git ->  git clone http//github.com/Jello_Smith/my-example.git…
在git bash中,运行下列命令: git config --global core.longpaths true 就可以解决该问题. --global是该参数的使用范围,如果只想对本版本库设置该参数,只要在上述命令中去掉--global即可.…
解决办法1:在用户配置目录下添加一个ssh配置文件 vim /root/.ssh/config  内容如下: Host * KexAlgorithms +diffie-hellman-group1-sha1 解决方法2: 在ssh全局配置目录下添加一个ssh配置文件 vim /etc/ssh/ssh_config.d/ssh_xx.conf  内容如下: Host * KexAlgorithms +diffie-hellman-group1-sha1 特别注意: ~/.ssh/config文件的…
一.背景 在服务器上克隆源码 二.解决 unset SSH_ASKPSS…
npm ERR! path E:\aawork\1work\2019.2\package.json 没有在项目路径下 npm ERR! missing script: dev 需要 vue init webpack…
有三种方式解决git clone时每次都需要输入用户名和密码, 1. SSH免密方式 使用git bash ssh-keygen或puttygen.exe生成公钥. 2. 配置全局开机存储认证信息 下面命令会将下次弹框的账号和密码保存起来,永久使用. git config --global credential.helper store 如果想要清除该账号和密码,使用如下命令: git config --global credential.helper reset 想要临时存储(默认15min)…
git clone: error: RPC failed; result=18, HTTP code = 200 解决办法 分类: git2013-09-01 17:03 10753人阅读 评论(2) 收藏 举报 gitcurl ​今天git clone时,出现这个错误. 因为自己的git库上面放了一些数据,所以整个库较大.google了一下,发现是curl的postBuffer 默认值较小的原因,配置下个这个值,就不会出现该错误了.…
centos 7  git clone时出现不支持协议版本的问题 unable to access 'https://github.com/baloonwj/TeamTalk.git/': Peer reports incompatible or unsupported protocol version. 解决方案: yum update -y nss curl libcurl centos安装 git命令 yum -y install git…
当一个 git 项目包含子模块(submodule) 时,直接克隆下来的子模块目录里面是空的. 有两种方法解决: 方法一 如果项目已经克隆到了本地,执行下面的步骤: 初始化本地子模块配置文件 git submodule init 更新项目,抓取子模块内容. git submodule update 方法二 另外一种更简单的方法,就是在执行 git clone 时加上 --recursive 参数.它会自动初始化并更新每一个子模块.例如: git clone --recursive https:/…
git clone 下载加速 1. 先在github将仓库地址复制下来 2. git clone时将https://github.com/* 改为https://gitclone.com/github.com/* vim-plug下载加速 1. 不使用Plug '作者名/仓库名这种简写' 而是使用Plug '全地址' 2. 同上面第二步,github.com前面加上gitclone.com/ vim-treesitter下载加速 init.vim结尾加上: lua <<EOF for _, c…
经常遇到这个问题, 所以今天决定把它记录下来 当使用git clone时,会报Please make sure you have the correct access rights and the repository exists.这个,解决方法: 1. git config --global user.name "登录名" 2. git config --global user.email "邮箱" 3. 在.ssh文件夹中删除known_hosts 4.执行…
最近使用 git clone 命令在Github上克隆自己项目到本地时出错:提示没有权限,确认仓库是否存在,如下图红色框所示 问题:用过 git 的小伙伴都知道克隆项目的命令是—— git clone,比如你在github下载某个项目到本地,如下图 一般下载项目到本地,直接点击上图的 Download ZIP下载即可:终端使用命令如下 git  clone  git@github.com:tujingyu/car-number-box.git 注:git clone 后面的地址就是你要下载某项目…
一.问题及解决办法参考: 在 ubuntu 中,要把 GitHub 上的储存库克隆到计算机上时,执行如下命令: git clone git@github.com:USER-NAME/REPOSITORY-NAME.git 有时候会出现提示,并且无法顺利 clone 所需文件: fatal: Could not read from remote repository 这时候可以转用 https,即不用 GitHub 上的 ssh,而用 https. git clone https://github…
error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed 原因:我们的项目由于时代久远,所以导致整个项目比较复杂庞大.出现这种错误,就是因为curl的postBuffer默认值太小的原因,重新在终端配置一下这个值就可以了.解决方…
error: The requested URL returned error: 401 Unauthorized while accessing https://git.oschina.net/....... 解决方法: # git --version git version 1.7.1 安装git时yum默认安装的是1.7.1,想到很多Git服务依赖会对git的版本会有依赖问题,于是想到了升级git版本. http://pkgs.repoforge.org/rpmforge-release/…
翻译整理自: http://web.mit.edu/~mkgray/project/silk/root/afs/sipb/project/git/git-doc/git-clone.html  在使用git来进行版本控制时,为了得一个项目的拷贝(copy),我们需要知道这个项目仓库的地址(Git URL). Git能在许多协议下使用,所以Git URL可能以ssh://, http(s)://, git://,或是只是以一个用户名(git 会认为这是一个ssh 地址)为前辍.  有些仓库可以通过…
git clone 命令参数: usage: git clone [options] [--] <repo> [<dir>] -v, --verbose be more verbose -q, --quiet be more quiet --progress force progress reporting -n, --no-checkout don't create a checkout --bare create a bare repository --mirror creat…
转载自:https://blog.lowstz.org/posts/2011/11/23/why-git-push-require-username-password-github/ 之前开始用github时是在ubuntu下按着官方的新手指南搞定的.但最近一直在用fedora,所以也想在fedora下用github,配置的时候很顺利,就是在git push的每次都需要输入username和password,而我是配置好公钥登陆的.用ssh -T git@github.com 也是成功用公钥登陆…
2015.1.13更新: 在本地搭建Git服务器时,也是有每次操作需要密码的情况. 是因为每次做推送动作时,Git需要认证你是好人.所以需要密码. 可以在 /home/username/.ssh/authorized_keys 文件里添加你的 ssh 公钥.一行一个.这样就可以在你push时,无需密码了. 如果该目录下没有 authorized 这个文件,就手动创建一个就可以了. ===================================== 以前用git时,各种pull push很…
在用git提交时代码至github上时每次都要输入用户名和密码,当提交操作较为频繁时非常不方便,可以按下文中的介绍,设置成提交时不用输入用户名和密码: 1.在当前库下,已经运行过 git remote add origin https://github.com/***/***.git 命令,则先运行如下命令: git remote rm origin 若以前没有运行过  git remote add origin https://github.com/***/***.git命令,直接跳到2步骤:…