I am trying to add a specific untracked file for the next commit in the local repository with git add myfile
. When I do, it behaves like if it worked (no output). But, if I execute git status
, the file is still untracked. The file itself is nothing esoteric, just a python script. This failure didn't happen with other python scripts in the same branch.
I've searched for similar questions in StackOverflow as far as I was able to, this is the most similar I could find: Why git add -A didn't add these files? But, this case is significantly different from mine. I also found this bug report on Google, but I wasn't able to understand the only answer to that bug issue.
I am using git 2.1.0 in Ubuntu 14.04. I moved the repository several weeks ago to another machine following @bdonlan 's answer in How to migrate GIT repository from one server to a new one: "Copy it over. It's really that simple. :)". Everything worked fine until now, except this issue.
Is there a way to find out why is this happening?