This is driving me insane, so any help is appreciated.
I have a file that I'm trying to commit & push to gitlab. When I modify it, it doesn't show up as changed in git status
, and using git add
does nothing (literally no message, nothing). I did some testing, and it turns out that any files that were created before my last commit don't show up when modified, but files that were added in my last commit do show up when modified.
I've tried telling git not to ignore changes to the file (git update-index --no-assume-unchanged path/to/file
) and removing the cached file, as suggested here. The file definitely isn't in my .gitignore.
What gives?
Update:
I totally removed the repo from my system, cloned it again, and then added my files back. It still doesn't work, same problem as before. git add
provides no output when adding that file.
Update numero dos: Solved the problem! I had to remove the bad files from the repo, then add them back. It works now!