Your local changes to the following files would be overwritten by merge: .DS_Store

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

此条目发表在错误警告分类目录,贴了, , 标签。将固定链接加入收藏夹。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注