克隆后立即更改git存储库?

rud*_*ph9 4 git

刚刚克隆了这个,目录立即有变化吗?

我从来没有遇到过这样的事情,我很好奇为什么会这样?以及这怎么可能呢?

更新:

我在使用git clone git://github.com/horndude77/open-scores.gitgit状态后立即克隆了repo 并显示:

git status
# Not currently on any branch.
# 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:   SaintSaensRomanceOp36/defs.ily
#       modified:   SaintSaensRomanceOp36/horn.ily
#
no changes added to commit (use "git add" and/or "git commit -a")
Run Code Online (Sandbox Code Playgroud)

git diff揭示:

warning: CRLF will be replaced by LF in SaintSaensRomanceOp36/defs.ily.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in SaintSaensRomanceOp36/horn.ily.
The file will have its original line endings in your working directory.
diff --git a/SaintSaensRomanceOp36/defs.ily b/SaintSaensRomanceOp36/defs.ily
index 07e09ac..c7961be 100644
--- a/SaintSaensRomanceOp36/defs.ily
+++ b/SaintSaensRomanceOp36/defs.ily
@@ -1,47 +1,47 @@
-\version "2.13.13"
.
.
.
Run Code Online (Sandbox Code Playgroud)

注意:只包括差异的顶部,因为它很长.

它是否在我克隆存储库时删除了CRLF字符,如果是这样,它们如何被包含在bigin的提交中?

rud*_*ph9 5

克隆存储库时,将自动删除在Windows计算机上进行提交时包含的CRLF字符.然后Git检测到这个变化,因此在克隆后立即修改了存储库,用户已经完成了除了a之外的任何操作git clone.

我通过* text=auto从我的.gitattributes文件中删除修复此问题.