首页 > 系统相关 >[FAQ] Windows 终端 git status 不识别文件名大小写的修改

[FAQ] Windows 终端 git status 不识别文件名大小写的修改

时间:2022-08-21 20:55:32浏览次数:101  
标签:status core git 文件名 Windows ignorecase 大小写

 

当我们修改了文件名的大小写,git status 显示没有文件改动。 

出现这种情况,首先看一下 git 的配置项是否忽略了文件问大小写:

$ git config core.ignorecase

 

如果是 true 表示 git 忽略大小写的修改,要让 git 不忽略文件名大小写的执行:

$ git config core.ignorecase false

  

Refer:core.ignorecase

Link:https://www.cnblogs.com/farwish/p/16610852.html

标签:status,core,git,文件名,Windows,ignorecase,大小写
From: https://www.cnblogs.com/farwish/p/16610852.html

相关文章

  • 用GitHub Actions自动部署Hexo
    什么是GitHubActions?GitHubActions是一个CI/CD(持续集成/持续部署)工具,GitHub于2018年10月推出,正式版于2019年11月正式推出。本文假设你已经有了自己的he......
  • windows make安装
    windowsmake安装1.1下载包网址:https://osdn.net/projects/mingw/releases/2.1安装双击后进入安装页面我更改了安装路径,默认C盘等待他自己下载安装包3.1设......
  • PicGo+GitHub 图床搭建
    前言用GitHub搭建图床,在很久之前我就有了解,但由于市面上有挺多免费的图床,比如我之前一直在用的路过图床,所以一直懒得动手搭建GitHub图床。一直到前两天我在完善博客的相......
  • windows安装xgb、lgb
    Windows10操作系统+Anaconda环境,亲测有效。xgb:condainstallpy-xgboostlgb:先打开:Anacondaprompt输入:condainstall-cconda-forgelightgbm......
  • CentOS 7 安装gitLab 全过程
    1.关闭防火墙&&禁用防火墙systemctlstopfirewalldsystemctldisablefirewalld2.关闭SELLINUX安全策略vi/etc/sysconfig/selinux...SELINUX=disable.........
  • git add -A 可以免于 git rm
    原文地址:https://segmentfault.com/q/1010000000095373用了一段时间git了,一直有个问题没解决.当做了一些修改时,一般会直接"gitadd."先将文件staged起来.......
  • git常用命令
               从gillab上检出代码用 gitstatusurl   如果文件改坏了,我们不想要这个文件了,可以手动删除文件,然后执行gitcheckout......
  • git push 提交代码提示错误[rejected]"error: failed to push some refs to 'project
    gitpush提交代码提示错误[rejected]"error:failedtopushsomerefsto'projecturl'"   原因是远程仓库代码和本地代码有冲突,gitpush之前的代码并不是远程......
  • windows操作系统安装Docker
    1win10,操作系统版本号大于20042开启WSL,https://docs.microsoft.com/en-us/windows/wsl/install命令行工具,运行命令:wsl--install3确认以下功能都开启  ......
  • git pull 拉代码冲突提示“error: Your local changes to the following files would
    gitpull拉代码冲突提示“error:Yourlocalchangestothefollowingfileswouldbeoverwrittenbymerge:        practice/fun.pyPleasecommityourcha......