MAC中本地GIT存储库中的案例敏感文件和文件夹

发布于 2025-01-25 10:47:20 字数 747 浏览 3 评论 0原文

我正在使用Mac OS与文件系统(默认情况下具有APFS-不敏感的文件系统)

,我为使系统适应 apfs case -sensitivity 访问带有病例敏感文件的访问git存储库:

  1. 我在Mac文件系统上创建了一个APFS卷,该卷很敏感,我在这个病例敏感的卷中克隆了git repo,该卷具有案例敏感的文件。
  2. 我设置了git config - global core.ignorecase false

现在,当我在本地拥有所有文件时,

    for example: 
    2 files which are pushed from unix OS which same name(case-sensitive) like:
    tmp/circletemp.java 
    tmp/CIRCLETEMP.java 

我试图通过bash查找对病例敏感的文件,并且可以看到所有对病例敏感的文件。

当我做 git ls-files 时,我看不到对案例敏感的文件,其中只显示了其中一个文件。

我是否错过了可以帮助Mac上的这项工作的任何东西?

请帮助我在这里了解问题。

谢谢您的帮助: )

I am using Mac OS with file system (which has APFS - insensitive file system by default)

Things which I did to make system adapt to APFS case-sensitivity so that I can access Git repo with case-sensitive files:

  1. I created a APFS volume on mac file-system which is case-sensitive and I cloned git repo in this case-sensitive volume which has case-sensitive files.
  2. I set git config --global core.ignorecase false

Now, when I have all the files from the git repository locally,

    for example: 
    2 files which are pushed from unix OS which same name(case-sensitive) like:
    tmp/circletemp.java 
    tmp/CIRCLETEMP.java 

I tried to look for case-sensitive files through bash and I can see all the case-sensitive files.

But when I do git ls-files I cant see the case-sensitive files only one of the file among them is shown.

Did I missed anything which can help this work on mac?

Please help me understand the issue here.

thank you for your help:)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文