All my files become unstaged in Git, when using Ubuntu.
When I run git diff
, Git shows:
--- a/<filename>
+++ b/<filename>
-<output of file>
+<output of file>
For example,
--- a/.gitignore
+++ b/.gitignore
-.tmp
-build
-node_modules
+.tmp
+build
+node_modules
However, when I use Git in Windows, Git properly shows the status (all files committed and staged)
Any ideas of how to fix this?
I'm using the same partition with the Git repo in both Ubuntu and Windows, and since it is in FAT32, Ubuntu automatically mounts the partition.