Your local changes to the following files would be overwritten by merge: .DS_Store
2022年03月24日 19:10:00 错误警告 ⁄ 共 1015字 暂无评论 ⁄ 被围观 2,652次

GIT 代码管理时,在合并分支代码过程中,报如下错误信息,导致代码无法合并。

Your local changes to the following files would be overwritten by merge: .DS_Store bonc-base-common/.DS_Store bonc-base-common/src/.DS_Store bonc-base-common/src/main/.DS_Store bonc-base-common/src/main/java/.DS_Store bonc-base-common/src/main/java/com/.DS_Store bonc-module-system/.DS_Store bonc-module-system/src/.DS_Store bonc-module-system/src/main/.DS_Store bonc-module-system/src/main/resources/.DS_Store db/.DS_Store

解决方法如下:

git restore --staged bonc-base-common/.DS_Store
git restore --staged bonc-base-common/src/.DS_Store
git restore --staged bonc-base-common/src/main/.DS_Store
git restore --staged bonc-base-common/src/main/java/.DS_Store
git restore --staged bonc-base-common/src/main/java/com/.DS_Store
git restore --staged bonc-module-system/.DS_Store
git restore --staged bonc-module-system/src/.DS_Store
git restore --staged bonc-module-system/src/main/.DS_Store
git restore --staged bonc-module-system/src/main/resources/.DS_Store
git restore --staged db/.DS_Store

原文链接:https://blog.csdn.net/tzhuwb/article/details/123718925

给我留言

留言无头像?