github网页端文件目录结构和本地不一致
高洛峰
高洛峰 2017-05-02 09:37:24
0
4
697

之前在本地修改过文件名,就是英文名简单的改了下首字母的大小写。但是现在本地文件和远端的仓库却出现了差别。网页上显示的目录结构如下图:

但是我本地 clone下来以后的目录结构是下面这个样子的

实际上我需要的是我本地的这种目录结构,请问有什么办法可以解决本地的目录结构和远端的目录结构不一致的这种情况。

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(4)
世界只因有你
  • Ah? What's the situation? I've solved it myself. fork

  • Data portal


  • [Supplement] I cloned it and found that there was indeed a problem.

  • [Supplement] Unix-like operating systems use a case-sensitive file system, while the file systems of Windows and Mac OS X (default installation) are case-insensitive.


  • git clone

    git clone https://github.com/zhiqiang21/blog
  • Make the repository case-insensitive

    git config core.ignorecase true
  • Modification

    Life

    git mv Life non-exist-filename
    git mv non-exist-filename Life
    git add *
    git commit -m"修改大小写"
  • Modification

    Technology

    git mv Technology non-exist-filename
    git mv non-exist-filename Technology
    git add *
    git commit -m"修改大小写"

  • You'd better create a

    and upload the system files on it. The content is: .gitignore,防止把mac

    # OS generated files #
    ######################
    .DS_Store
    .DS_Store?
    ._*
    .Spotlight-V100
    .Trashes
    ehthumbs.db
    Thumbs.db 
世界只因有你

Clone, change the file name to another name, and then change it back to the correct case (directly changing the case will be ignored by some systems), delete the redundant files

黄舟

*nix systems (including MacOS) strictly distinguish between upper and lower case of file names, but this is also related to the file system. Under *nix, file systems related to Windows do not distinguish between upper and lower case of file names, because Windows itself does not distinguish between upper and lower case. .
Post the address and I will clone it and see what happens under Windows.

小葫芦

Thank you for the invitation, that’ll be it. . gitignoreFilter files

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!