我的git版本是2.3.x,用下面这个参考链接的方法也可以解决 参考blog…
环境:centOS7  背景:公司代码仓库迁移,因而配置的jenkins自动打包git地址也要跟着变化. 问题描述:git clone http xxxx.git后报错: fatal: repository 'xxxx' not found 先说解决办法:在hosts文件中把新的仓库所在机器host配置上就可以了 nono /etc/hosts 然后是问题的解决过程: 出现这个错误,意思是说找不到仓库地址 很奇怪会遇到这个问题,怀疑是地址不对,所以在其它机器(ubuntu/MAC)上试了git…
通过命令添加新repository到git hub在执行最后一步命令(如下所示)的时候报错 git push -u origin master error:remote: Repository not found.fatal: repository 'https://github.com/*****/???.git/' not found Solution:(1)manually add the repository "Repositrory Name" on https://gith…
Jenkins源代码管理 添加gitlab项目地址 报错如下: Failed to connect to repository : Error performing command: ls-remote -h git@192.168.92.130:8090/root/swapping.git HEAD 前提条件: 在解决这个问题之前,首先确定了你的Jenkins是在[系统管理] 设置过[全局工具配置]的. 如果没有[jenkins的docker镜像内,自动安装JDK/Maven/Git]先去安装…
1.部署jenkins+git源码管理的方式,源码管理报128stdout 源码管理出现如下错误: Failed to connect to repository : Command "git ls-remote -h http://gitlab.xxxxx.git HEAD" returned status code 128: stdout: stderr: fatal: repository 'http://gitlab.xxxxx.git' not found http://gi…
错误: fatal: https://github.com/TeaCodie/TeaCodie-Website.git/info/refs not found: did you run git update-server-info on the server 解决: cd 到你的项目/.git vim config 打开config文件 找到[remote "origin"] 查看上面的URL是否正确 修改保存即可 url =…
git提交代码出现错误fatal: Unable to create '项目路径/.git/index.lock': File exists. 具体出错代码如下: 具体原因不详,在stackoverflow上查找了很久,也不清楚原因,但是stackoverflow给出了解决的方法. 解决方法: 在当前项目下打开git bash,运行如下命令: rm -f ./.Git/index.lock 只为成功找方法.大胆的尝试,下一个fun就是你的fun!…
新建的git,在git push的时候遇到了报错“fatal: I don't handle protocol 'git@http'” 网上搜这个错误基本都是“fatal: I don't handle protocol 'git@https'”的情况,最终在同事的帮助下解决: 解决办法: 打开.git/config 将[remote “origin”]选项下的url的值从git@http开头改为http开头,即去掉最前面的git@…
error: failed to push some refs to 'git@git.caicaivip.com:devops/thor.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before push…
fatal: 远程 origin 已经存在. 解决方法1:删除origin主机名 git remote rm origin #删除 git remote add origin https://github.com/xxxx #添加 解决方法2:保留origin远程主机,再关联另外一个主机 git remote add https://github.com/xxxx.git #关联另一个远程主机 本质: git push的一般形式为 git push <远程主机名> <本地分支名>…