git 在windows上显示很多文件有改动实际没有变化

devtools/2025/1/6 17:41:16/

我把linux上的spdk 代码 copy到windows上后, 用git extension打开后发现有300 多个文件有改动, 但是用diff tool看, 显示完全一样。

在window上用git bash 看时, 

git status 显示如下:

fied:   test/nvmf/target/connect_disconnect.shmodified:   test/nvmf/target/connect_stress.shmodified:   test/nvmf/target/control_msg_list.shmodified:   test/nvmf/target/delete_subsystem.shmodified:   test/nvmf/target/device_removal.shmodified:   test/nvmf/target/dif.shmodified:   test/nvmf/target/discovery.shmodified:   test/nvmf/target/fabrics_fuzz.shmodified:   test/nvmf/target/filesystem.shmodified:   test/nvmf/target/fio.shmodified:   test/nvmf/target/fused_ordering.shmodified:   test/nvmf/target/host_management.shmodified:   test/nvmf/target/identify_passthru.shmodified:   test/nvmf/target/initiator_timeout.shmodified:   test/nvmf/target/interrupt.shmodified:   test/nvmf/target/invalid.shmodified:   test/nvmf/target/multiconnection.shmodified:   test/nvmf/target/multipath.shmodified:   test/nvmf/target/multitarget.shmodified:   test/nvmf/target/multitarget_rpc.pymodified:   test/nvmf/target/nmic.shmodified:   test/nvmf/target/ns_hotplug_stress.shmodified:   test/nvmf/target/ns_masking.shmodified:   test/nvmf/target/nsid.shmodified:   test/nvmf/target/nvme_cli.shmodified:   test/nvmf/target/nvmf_example.shmodified:   test/nvmf/target/nvmf_lvol.shmodified:   test/nvmf/target/nvmf_lvs_grow.shmodified:   test/nvmf/target/nvmf_vfio_user.shmodified:   test/nvmf/target/perf_adq.shmodified:   test/nvmf/target/queue_depth.shmodified:   test/nvmf/target/referrals.shmodified:   test/nvmf/target/rpc.shmodified:   test/nvmf/target/shutdown.shmodified:   test/nvmf/target/srq_overwhelm.shmodified:   test/nvmf/target/tls.shmodified:   test/nvmf/target/vfio_user_fuzz.shmodified:   test/nvmf/target/wait_for_buf.shmodified:   test/nvmf/target/zcopy.shmodified:   test/ocf/integrity/bdevperf-iotypes.shmodified:   test/ocf/integrity/fio-modes.shmodified:   test/ocf/integrity/flush.shmodified:   test/ocf/integrity/stats.shmodified:   test/ocf/management/configuration-change.shmodified:   test/ocf/management/create-destruct.shmodified:   test/ocf/management/multicore.shmodified:   test/ocf/management/remove.shmodified:   test/ocf/ocf.shmodified:   test/openstack/install_devstack.shmodified:   test/openstack/run_openstack_tests.shmodified:   test/packaging/packaging.shmodified:   test/packaging/rpm/rpm.shmodified:   test/rpc/rpc.shmodified:   test/rpc/skip_rpc.shmodified:   test/rpc_client/rpc_client.shmodified:   test/scheduler/core_isolating.shmodified:   test/scheduler/governor.shmodified:   test/scheduler/idle.shmodified:   test/scheduler/interrupt.shmodified:   test/scheduler/load_balancing.shmodified:   test/scheduler/rdmsr.plmodified:   test/scheduler/rpc.shmodified:   test/scheduler/scheduler.shmodified:   test/setup/acl.shmodified:   test/setup/devices.shmodified:   test/setup/driver.shmodified:   test/setup/hugepages.shmodified:   test/setup/test-setup.shmodified:   test/sma/crypto.shmodified:   test/sma/discovery.shmodified:   test/sma/nvmf_tcp.shmodified:   test/sma/plugins.shmodified:   test/sma/qos.shmodified:   test/sma/sma.shmodified:   test/sma/vfiouser_qemu.shmodified:   test/sma/vhost_blk.shmodified:   test/spdkcli/iscsi.shmodified:   test/spdkcli/nvmf.shmodified:   test/spdkcli/raid.shmodified:   test/spdkcli/rbd.shmodified:   test/spdkcli/spdkcli_job.pymodified:   test/spdkcli/tcp.shmodified:   test/spdkcli/vhost.shmodified:   test/spdkcli/virtio.shmodified:   test/thread/thread.shmodified:   test/ublk/ublk.shmodified:   test/ublk/ublk_recovery.shmodified:   test/unit/unittest.shmodified:   test/vfio_user/nvme/vfio_user_fio.shmodified:   test/vfio_user/nvme/vfio_user_restart_vm.shmodified:   test/vfio_user/vfio_user.shmodified:   test/vfio_user/virtio/fio_fs.shmodified:   test/vfio_user/virtio/fio_restart_vm.shmodified:   test/vfio_user/virtio/initiator_bdevperf.shmodified:   test/vhost/fio/fio.shmodified:   test/vhost/fiotest/fio.shmodified:   test/vhost/fuzz/fuzz.shmodified:   test/vhost/hotplug/scsi_hotattach.shmodified:   test/vhost/hotplug/scsi_hotdetach.shmodified:   test/vhost/hotplug/scsi_hotplug.shmodified:   test/vhost/initiator/blockdev.shmodified:   test/vhost/integrity/integrity_start.shmodified:   test/vhost/integrity/integrity_vm.shmodified:   test/vhost/lvol/lvol_test.shmodified:   test/vhost/manual.shmodified:   test/vhost/migration/migration.shmodified:   test/vhost/nvmf/nvmf_vhost.shmodified:   test/vhost/other/negative.shmodified:   test/vhost/parse_irqs.shmodified:   test/vhost/perf_bench/vhost_perf.shmodified:   test/vhost/readonly/delete_partition_vm.shmodified:   test/vhost/readonly/disabled_readonly_vm.shmodified:   test/vhost/readonly/enabled_readonly_vm.shmodified:   test/vhost/readonly/readonly.shmodified:   test/vhost/shared/shared.shmodified:   test/vhost/vhost.shmodified:   test/vhost/vhost_boot/vhost_boot.shmodified:   test/vhost/windows/windows_scsi_compliance.pymodified:   test/vhost/windows/windows_scsi_compliance.shmodified:   test/vmd/vmd.shmodified:   xnvme (modified content)no changes added to commit (use "git add" and/or "git commit -a")

实际这文件 没有改动,

解决办法如下, 同一个路径下执行:‘

git config --add core.filemode false

这个时候再查:

Administrator@XTZJ-20220917LC MINGW64 /e/1_study/1_dpdk/spdk_practice/spdk (dev/bob-1.x)
$ git status
On branch dev/bob-1.x
Changes not staged for commit:(use "git add <file>..." to update what will be committed)(use "git restore <file>..." to discard changes in working directory)(commit or discard the untracked or modified content in submodules)modified:   dpdk (modified content)modified:   intel-ipsec-mb (modified content)modified:   isa-l (modified content)modified:   isa-l-crypto (modified content)modified:   libvfio-user (modified content)modified:   ocf (modified content)modified:   xnvme (modified content)no changes added to commit (use "git add" and/or "git commit -a")

这个时候 发现, 没有改动文件 已经不显示 了。


http://www.ppmy.cn/devtools/147322.html

相关文章

Zookeeper下面的lib

ZooKeeper 是一个分布式协调服务&#xff0c;用于维护和协调分布式应用程序中的数据管理。在 ZooKeeper 的安装目录下&#xff0c;lib 文件夹通常包含了所有必要的库文件&#xff0c;这些库文件对于 ZooKeeper 的正常运行至关重要。以下是 lib 文件夹中一些主要库的作用&#x…

Django 中数据库迁移命令

在 Django 中&#xff0c;python manage.py makemigrations、python manage.py sqlmigrate polls 0003 和 python manage.py migrate 是与数据库迁移相关的重要命令。它们的作用和对应内容如下&#xff1a; 1. python manage.py makemigrations 功能: 此命令会根据你的模型文…

用Python写炸金花游戏

文章目录 **代码分解与讲解**1. **扑克牌的生成与洗牌**2. **给玩家发牌**3. **打印玩家的手牌**4. **定义牌的优先级**5. **判断牌型**6. **确定牌型优先级**7. **比较两手牌的大小**8. **打印结果** 完整代码 以下游戏规则&#xff1a; 那么我们要实现的功能&#xff0c;就是…

INT303 Big Data Analytics 笔记

Lecture1 Introduction 不考&#xff01; “Data Mining is the study of collecting, processing, analyzing, and gaining useful insights from data” EXPLORATORY ANALYSIS Make measurements to understand what the data looks like first steps when collecting da…

Vue axios 异步请求,请求响应拦截器

在 Vue.js 中使用 axios 进行网络请求是非常常见的做法&#xff0c;因为它提供了比原生的 Fetch API 更丰富的功能&#xff0c;并且更易于处理错误和配置。结合 Axios 的拦截器功能&#xff0c;你可以对所有的请求或响应进行预处理&#xff0c;比如添加认证头信息、统一处理错误…

008-SpringBoot 限流

SpringBoot 限流 一、引入依赖二、创建注解三、Redis 配置四、创建切面1.第一种写法&#xff1a;2.第二种写法&#xff1a; 五、配置 Application六、工具七、测试 Controller八、演示结果 自定义注解助力系统保护与高效运行 一、引入依赖 <parent><groupId>org.…

计算机网络 (14)数字传输系统

一、定义与原理 数字传输系统&#xff0c;顾名思义&#xff0c;是一种将连续变化的模拟信号转换为离散的数字信号&#xff0c;并通过适当的传输媒介进行传递的系统。在数字传输系统中&#xff0c;信息被编码成一系列的二进制数字&#xff0c;即0和1&#xff0c;这些数字序列能够…

C语言插入排序及其优化

插入排序算法详解 插入排序是一种简单直观的排序算法。它通过构建有序序列&#xff0c;将未排序部分的元素插入到已排序部分的正确位置&#xff0c;直到所有元素排序完成。下面是插入排序的关键点及其实现细节。 算法思想 从第二个元素&#xff08;下标为 1&#xff09;开始&…