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

news/2024/12/27 10:41:02 标签: git

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

在window上用git bash 看时, 

git status 显示如下:

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

相关文章

极狐GitLab 17.7正式发布,可从 GitLab 丝滑迁移至极狐GitLab【二】

GitLab 是一个全球知名的一体化 DevOps 平台&#xff0c;很多人都通过私有化部署 GitLab 来进行源代码托管。极狐GitLab 是 GitLab 在中国的发行版&#xff0c;专门为中国程序员服务。可以一键式部署极狐GitLab。 学习极狐GitLab 的相关资料&#xff1a; 极狐GitLab 官网极狐…

uni-app 中使用微信小程序第三方 SDK 及资源汇总

&#x1f380;&#x1f380;&#x1f380;uni-app 跨端开发系列 &#x1f380;&#x1f380;&#x1f380; 一、uni-app 组成和跨端原理 二、uni-app 各端差异注意事项 三、uni-app 离线本地存储方案 四、uni-app UI库、框架、组件选型指南 五、uni-app 蓝牙开发 六、uni-app …

数据库索引与 MVCC:原理、应用及事务隔离

1.什么时候不要使用索引&#xff1f; 在数据库设计和优化中&#xff0c;索引是提高查询性能的重要工具。然而&#xff0c;并不是所有情况下都适合使用索引。以下是一些不应该或不需要使用索引的情况&#xff1a; 小表&#xff1a;对于非常小的表&#xff08;例如&#xff0c;…

贪心算法(常见贪心模型)

常见贪心模型 简单排序模型 最小化战斗力差距 题目分析&#xff1a; #include <bits/stdc.h> using namespace std;const int N 1e5 10;int n; int a[N];int main() {// 请在此输入您的代码cin >> n;for (int i 1;i < n;i) cin >> a[i];sort(a1,a1n);…

【hackmyvm】soul靶机wp

tags: HMVrbash绕过图片隐写PHP配置解析 1. 基本信息^toc 文章目录 1. 基本信息^toc2. 信息收集3. 图片解密3.1. 爆破用户名3.2. 绕过rbash3.3. 提权检测 4. 获取webshell4.1. 修改php配置 5. www-data提权gabriel6. gabriel提取到Peter7. Peter提权root 靶机链接 https://ha…

启动动效流程梳理(二)

performSurfacePlacementNoTrace() 这一段从performSurfacePlacement()开始讲起&#xff0c;因为在trace中可以看到在SystemServer中&#xff0c;动效会从performSurfacePlacement这个tag点触发。这里的流程就是在窗口状态改变之后&#xff0c;会触发performSurfacePlacement流…

ios按键精灵自动化的脚本教程:自动点赞功能的实现

使用按键精灵简单模拟在抖音中进行点赞操作的示例脚本&#xff0c;不过需要提醒的是&#xff0c;在等部分平台使用自动化脚本进行操作如果违反平台规则&#xff0c;可能会导致账号被限制等情况&#xff0c;仅用于学习参考哦。 前提准备 确保你的手机屏幕分辨率已经在按键精灵…

HuggingFace peft LoRA 微调 LLaMA

1. 安装必要库 pip install transformers peft accelerate2. 加载 LLaMA 模型和分词器 从 Hugging Face Transformers 加载预训练的 LLaMA 模型和分词器。 from transformers import AutoModelForCausalLM, AutoTokenizer# 加载 LLaMA 模型和分词器 model_name "meta-…