Why does Git say that files are modified right after I clone the repo? #360
-
When I run $ git --version
git version 2.45.1
$ git clone https://github.com/DescentDevelopers/Descent3.git
Cloning into 'Descent3'...
remote: Enumerating objects: 10016, done.
remote: Counting objects: 100% (242/242), done.
remote: Compressing objects: 100% (162/162), done.
remote: Total 10016 (delta 104), reused 174 (delta 79), pack-reused 9774
Receiving objects: 100% (10016/10016), 27.94 MiB | 32.59 MiB/s, done.
Resolving deltas: 100% (6440/6440), done.
$ cd Descent3
$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: libacm/libacm.vcproj
modified: scripts/data/fullhog/Level15i.str
modified: scripts/data/fullhog/Level2i.str
no changes added to commit (use "git add" and/or "git commit -a")
$ When I run $ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: libacm/libacm.vcproj
modified: scripts/data/fullhog/Level15i.str
modified: scripts/data/fullhog/Level2i.str
no changes added to commit (use "git add" and/or "git commit -a")
$ git restore .
$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: libacm/libacm.vcproj
modified: scripts/data/fullhog/Level15i.str
modified: scripts/data/fullhog/Level2i.str
no changes added to commit (use "git add" and/or "git commit -a")
$ What’s going on here? How do I get rid of these local changes that I didn’t make? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
It's line endings or file permissions-I ran into the same problem last week with github desktop. Do a |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Check if this is resolved after #361 |
Beta Was this translation helpful? Give feedback.
Check if this is resolved after #361