git拉取报错cannot lock ref ‘refs/remotes/origin/*: unable to resolve reference ‘refs/remotes/origin/*

参考:https://blog.csdn.net/Heaven_has_a_way/article/details/112212499

通过idea或git bash拉取代码 git pull报错:
在这里插入图片描述试了一下git pull origin +分支名可以拉取成功 但是每次这样输入很不方便
试了其他很多办法也不行

最终找到了一个最好的解决方案:
删除对应文件夹的报错分支就能用git pull拉取成功了
在这里插入图片描述

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Started by user admin Running as SYSTEM Building in workspace /var/jenkins_home/workspace/SGLD_SHIP_SYSTEM The recommended git tool is: NONE using credential 3daf7d0b-8918-4f92-9c5d-a3059a66a722 > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/SGLD_SHIP_SYSTEM/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url http://139.199.13.25:3000/shaofq/AG-SGLD-ILOG-1.0.git # timeout=10 Fetching upstream changes from http://139.199.13.25:3000/shaofq/AG-SGLD-ILOG-1.0.git > git --version # timeout=10 > git --version # 'git version 2.30.2' using GIT_ASKPASS to set credentials > git fetch --tags --force --progress -- http://139.199.13.25:3000/shaofq/AG-SGLD-ILOG-1.0.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision 68b36471d8d68c7d5f6af47cd1c1025861e4cb03 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 68b36471d8d68c7d5f6af47cd1c1025861e4cb03 # timeout=10 Commit message: "feat:新增航线中文名维护" > git rev-list --no-walk 68b36471d8d68c7d5f6af47cd1c1025861e4cb03 # timeout=10 using settings config with name MySettings Replacing all maven server entries not found in credentials list is true [SGLD_SHIP_SYSTEM] $ /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/mymaven/bin/mvn -s /tmp/settings10948644921560376548.xml clean package -Pprod -Dmaven.test.skip=true -e Build step 'Invoke top-level Maven targets' marked build as failure Finished: FAILURE
06-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值