栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

IDEA无法用Git提交代码报错解决方法

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

IDEA无法用Git提交代码报错解决方法

Java用Git提交代码报错提示:

0 file committed, 1 file failed to commit: fix(fulltextindex):添加判空 On branch master Your branch is up to date with 'origin/master'. Changes not staged for commit: (use "git add  ..." to update what will be committed) (use "git restore  ..." to discard

或者

0 file committed, 1 file failed to commit: fix(fulltextindex):添加判空 On branch master Your branch is up to date with 'origin/master'. Changes not staged for commit: (use "git add  ..." to update what will be committed) (use "git restore  ..." to discard changes in working directory) modified: dataexchange/src/main/java/paas/task/DataExchangeTaskExecuteService.java modified: fullTextIndex/src/main/java/paas/storage/fulltextindex/table/TableImpl.java modified: relationaldatabase/src/main/java/paas/storage/relationaldatabase/table/TableImpl.java modified: web-api/src/main/resources/application.properties Untracked files: (use "git add  ..." to include in what will be committed) tbds-api/target/ no changes added to commit (use "git add" and/or "git commit -a")

解决办法:

上述显示这个文件的代码无法提交,
先把代码文件复制到桌面进行备份,然后在IDEA直接删除这个代码文件
再用Git提交上去这个代码文件的删除操作,然后再把桌面备份的代码文件复制粘贴到原来的工程当中就可以成功提交这个代码文件了!!!

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/678577.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号