Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git not detection new added file

Tags:

git

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:

  1. Checked my git-ingore.
  2. Redownload the projects.

But nothing seams to work. How can I solve the problem?

like image 872
Max_Power89 Avatar asked Jul 17 '26 00:07

Max_Power89


1 Answers

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.

like image 74
Max_Power89 Avatar answered Jul 20 '26 09:07

Max_Power89



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!