Jacky001
V2EX  ›  问与答

这算是 git 中的小 bug 吗?

  •  
  •   Jacky001 · May 8, 2017 · 1684 views
    This topic created in 3292 days ago, the information mentioned may be changed or developed.
    比如一个文件名字是 index.html,通过 git 推送到服务器了,然后发现这里写错了,首字母应该是大写 Index.html,更改后,提交到服务器,然后在其他任何地方 clone 下来的,这个文件名字的首字母依旧是小写。
    5 replies    2017-05-09 00:08:06 +08:00
    34D
        1
    34D  
       May 8, 2017
    git config core.ignorecase false
    msg7086
        2
    msg7086  
       May 8, 2017
    不是。
    Jacky001
        3
    Jacky001  
    OP
       May 8, 2017
    @34D
    @msg7086 多谢指教,我还是不熟悉 git,回头再仔细啃一下
    zhs227
        4
    zhs227  
       May 9, 2017
    是使用 git mv 修改的吗,还是直接就资源管理器改过来了。如果是 git mv,不应该出现这种情况。
    lechain
        5
    lechain  
       May 9, 2017 via Android
    这应该是 git 为了适应不同的文件系统,试想一下这种可能,你的服务器上的系统不区分大小写……你本地的修改等于没修改…
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5944 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 02:53 · PVG 10:53 · LAX 19:53 · JFK 22:53
    ♥ Do have faith in what you're doing.