[英]fresh git clone shows modified as well as untracked files
编辑:需要先解决这个问题:
假设我们有三个系统Linux(区分大小写的文件系统),MAC(不区分大小写)和WINDOWS(不区分大小写)
现在,如果LINUX
某人创建了一个具有文件a.php
, b.php
, c.php
的文件夹名称FORM
和另一个具有a.php
, b.php
和d.php
文件的文件夹名称form
,并将其推送到远程d.php
现在,当MAC
或WINDOWS
上的用户克隆存储库时,由于MAC
和WINDOWS
不区分大小写,因此git
在处理来自remote
FORM
和form
时的行为如何
此问题可能会导致我面临以下描述的问题
奇怪,我在MAC
进行了一个新的git clone
(也在Windows上进行了测试),之后,当我进行git status
它向我显示了3个修改后的文件和3个未跟踪的文件
admin@admins-MacBook-Pro.local:~/Documents/myacademy$git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: dev/Form/learn-trader-backup - Copy.php
modified: dev/form/learn-trader.php
modified: myacademy/images/Marketing_image.jpg
Untracked files:
(use "git add <file>..." to include in what will be committed)
dev/Form/.learn-trader-foundation.php.swp
myacademy/de/FAQs-h%E4ufig_.pdf
myacademy/pt/FAQs-h%E4ufig.pdf
"v/M\303\251thodes.pdf"
当我执行git diff dev/form/learn-trader.php
,实际上显示了文件中的更改。
git crlf and mode false
也不起作用。
完全困惑..
任何帮助。
谢谢
克隆到文件夹之前,请确保其中没有.git文件夹/软链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.