I have a project using github git ignore template. https://github.com/github/gitignore When I git clone this repo and didn't modify anything, git status still shows me there is a file modified. The worst thing is that even use git checkout, the file still exist with modified status.
modified: OpenCart.gitignore
This problem will cause my git submodule does not work well. How to fix it?
Update: This is what git diff shows:
diff --git a/OpenCart.gitignore b/OpenCart.gitignore
index f317912..c673f1f 100644
--- a/OpenCart.gitignore
+++ b/OpenCart.gitignore
@@ -1,7 +1,10 @@
-.htaccess
config.php
-download/
-image/data/
-image/cache/
-system/cache/
-system/logs/
+admin/config.php
+
+!index.html
+
+download
+image/cache/*.jpg
+image/cache/data/*
+system/cache
+system/logs
But I didn't modify this file and ls
command cannot list this file.