Answer the question
In order to leave comments, you need to log in
Why doesn't the file want to be added to git?
Good day.
For some reason, a certain file does not want to be added to git. I make changes to the file, but this file does not get into the commit.
it is not in gitignor.
Which way to look to solve this problem?
Answer the question
In order to leave comments, you need to log in
figured out
[3:28]
it was because of the submodule in newdyatkovo
[3:29]
fatal: Pathspec 'newdyatkovo/scripts/site.js' is in submodule 'newdyatkovo'
[3:30]
did this:
git config -f . git/config --remove-section submodule.newdyatkovo
git config -f .gitmodules --remove-section submodule.newdyatkovo
git rm --cached newdyatkovo
git add newdyatkovo/scripts/site.js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question