git出现error: unable to unlink old ‘***.jar‘问题

在尝试切换Git分支时,由于本地项目正在运行并引用了特定jar包,导致git操作出现错误。解决方案是首先停止应用,然后在IDEA中回滚该jar包。问题分析表明,当项目运行并引用jar包时,git无法正常更新。

1 问题描述
  • 拉取了新分支代码(git fetch + git checkout -b)
  • 操作本地新分支时,出现了问题(git rebase,git stash,git checkout 老分支都不会提示这个的报错,在idea上rollback也会报同样的错误)
2 问题解决
  • 停止应用(项目在运行,引用了这个jar包,导致git无法访问)
  • 在idea中 rollback这个jar包
  • 选中jar包,点击按钮
    在这里插入图片描述
3 问题分析
  • 项目在运行,引用jar包,git无法更新
tplink@tplink-vm:~/NVMP_DC/NVMP/nvmp/ams_package$ git reset --hard a749b8f error: unable to unlink old '3rdparty/ncnn/.github/ISSUE_TEMPLATE/bug.md': Permission denied error: unable to unlink old '3rdparty/ncnn/.github/ISSUE_TEMPLATE/model-convert.md': Permission denied error: unable to unlink old '3rdparty/ncnn/.github/ISSUE_TEMPLATE/others.md': Permission denied error: unable to unlink old '3rdparty/ncnn/.github/ISSUE_TEMPLATE/quantization.md': Permission denied error: unable to unlink old 'model/FCD/1.0.1/AX620Q/face_cover.axmodel': Permission denied error: unable to unlink old 'model/FCD/1.0.1/AX620Q/face_cover.axmodel.dsc': Permission denied error: unable to unlink old 'model/FCD/1.0.1/AX630C/face_cover.axmodel': Permission denied error: unable to unlink old 'model/FCD/1.0.1/AX630C/face_cover.axmodel.dsc': Permission denied error: unable to unlink old 'tools/amazon_review/.gitignore': Permission denied error: unable to unlink old 'tools/amazon_review/amazon_review_spyder.py': Permission denied error: unable to unlink old 'tools/amazon_review/requirements.txt': Permission denied error: unable to unlink old 'tools/amazon_review/urls.txt': Permission denied error: unable to unlink old 'tools/bug_reminder/bug_reminder.py': Permission denied error: unable to unlink old 'tools/bug_reminder/config.json': Permission denied error: unable to unlink old 'tools/bug_reminder/update_config.py': Permission denied error: unable to unlink old 'tools/code_review/tscancode/cfg/avr.cfg': Permission denied error: unable to unlink old 'tools/code_review/tscancode/cfg/cfg.xml': Permission denied error: unable to unlink old 'tools/code_review/tscancode/cfg/gnu.cfg': Permission denied error: unable to unlink old 'tools/code_review/tscancode/cfg/gtk.cfg': Permission denied error: unable to unlink old 'tools/code_review/tscancode/cfg/microsoft_sal.cfg': Permission denied error: unable to unlink old 'tools/code_review/tscancode/cfg/posix.cfg': Permission denied error: unable to unlink old 'tools/code_review/tscancode/cfg/qt.cfg': Permission denied error: unable to unlink old 'tools/code_review/tscancode/cfg/sdl.cfg': Permission denied error: unable to unlink old 'tools/code_review/tscancode/cfg/std.cfg': Permission denied error: unable to unlink old 'tools/code_review/tscancode/cfg/windows.cfg': Permission denied error: unable to unlink old 'tools/code_review/tscancode/tscancode': Permission denied error: unable to unlink old 'tools/gerrit_analysis/README.md': Permission denied error: unable to unlink old 'tools/gerrit_analysis/clean_artifacts.py': Permission denied error: unable to unlink old 'tools/gerrit_analysis/gerrit_analysis.py': Permission denied error: unable to unlink old 'tools/gerrit_analysis/requirements.txt': Permission denied fatal: Could not reset index file to revision 'a749b8f'.
最新发布
12-12
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值