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

相关推荐
Smile丶凉轩6 小时前
微服务即时通讯系统的实现(服务端)----(1)
c++·git·微服务·github
和你一起去月球15 小时前
TypeScript - 函数(下)
javascript·git·typescript
我不是程序猿儿16 小时前
【GIT】TortoiseGit的变基(Rebase)操作
git
yyycqupt1 天前
git使用(一)
git
Kkooe1 天前
GitLab|数据迁移
运维·服务器·git
Beekeeper&&P...1 天前
git bash是什么,git是什么,git中的暂存区是什么,git中的本地仓库是什么,git中工作目录指的是什么
开发语言·git·bash
Stara05111 天前
Git推送+拉去+uwsgi+Nginx服务器部署项目
git·python·mysql·nginx·gitee·github·uwsgi
lsswear1 天前
GIT 操作
git