git分支拉取时,提示冲突

stderr: error: unable to resolve reference refs/remotes/origin/xx/20231129: ??? 来自http://192.168.0.xx:6452/xxx-xx/xx-xx

! [新分支] hotfix/20231129 -> origin/xxx/20231129 (不能更新本地引用)

error: 一些本地引用不能被更新;尝试运行

'git remote prune http://192.168.0.xx:6452/xxx-xx/xx-xx.git' 来删除旧的、有冲突的分支

cpp 复制代码
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from http://192.168.0.xx:6452/xxx-xx/xx-xx.git
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:996)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1237)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1297)
	at hudson.scm.SCM.checkout(SCM.java:505)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:637)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:509)
	at hudson.model.Run.execute(Run.java:1907)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://192.168.0.xx:6452/xx-xx/xx-xx.git +refs/heads/*:refs/remotes/origin/*" returned status code 1:
stdout: 
stderr: error: unable to resolve reference refs/remotes/origin/xxx/20231129: ????
来自 http://192.168.0.231:64280/paltform-web/organization-platform
 ! [新分支]          xxx/20231129 -> origin/xx/20231129  (不能更新本地引用)
error: 一些本地引用不能被更新;尝试运行
 'git remote prune http://192.168.0.xx:6452/xx-xx/xx-xx.git' 来删除旧的、有冲突的分支

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2051)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:573)
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:994)
	... 11 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE

上面提示:

无法解析当前分支,同时还建议尝试运行 git remote prune 命令来删除旧的、有冲突的分支。

使用命令: git remote prune origin

cpp 复制代码
 git remote prune origin
修剪 origin
URL:http://192.168.0.xx:6452/xxx/xxx-xx.git
 * [已删除] origin/release/20230711
 * [已删除] origin/release/20230823
 * [已删除] origin/release/20230921
 * [已删除] origin/release/20230927
 * [已删除] origin/release/20231012
 * [已删除] origin/release/20231016
 * [已删除] origin/release/20231018
 * [已删除] origin/release/20231020
 * [已删除] origin/release/20231024
 * [已删除] origin/release/20231103
 * [已删除] origin/release/20231108
 * [已删除] origin/release/20231113
 * [已删除] origin/release/20231116
 * [已删除] origin/release/20231123

----------end

相关推荐
Winston Wood32 分钟前
一文了解git TAG
git·版本控制
喵喵先森1 小时前
Git 的基本概念和使用方式
git·源代码管理
xianwu5432 小时前
反向代理模块
linux·开发语言·网络·git
binishuaio5 小时前
Java 第11天 (git版本控制器基础用法)
java·开发语言·git
会发光的猪。5 小时前
如何在vscode中安装git详细新手教程
前端·ide·git·vscode
stewie67 小时前
在IDEA中使用Git
java·git
晓理紫16 小时前
使用git lfs向huggingface提交较大的数据或者权重
git
我不是程序猿儿17 小时前
【GIT】sourceTree的“当前分支“,“合并分支“与“检出分支的区别
git
_OLi_1 天前
IDEA中新建与切换Git分支
java·spring boot·git
PyAIGCMaster1 天前
ubuntu下安装 git 及部署cosyvoice(1)
git