I'm having trouble with git, here it's the problem: I have serval projects which i'm using git, suddenly git stop to keep track of all the new files added to any of the existents projects (scripts, images etc etc), the wired thing it's that git detect all the changes made the existing files of that already are in the project, but when i try to add something new noting will happen.
So far I have:
But nothing seams to work. How can I solve the problem?
I found the problem. When I try to manually add the file using the command
git add <filename>
I got the following answer:
The following paths are ignored by one of your .gitignore files:
Now since I've checked the git ignore in my folder, I was sure that my .gitignore wasn't ignoring the file. So by running the command:
git check-ignore -v <file name>
I got this:
/Users/Anonymus/.gitignore_global:3:Assets
So it was my gitignore_global fault. I had to change it and I have no clue of how the gitignore_global has been modified/changed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With