S
S
Sergey Gladyshev2017-05-24 09:19:22
git
Sergey Gladyshev, 2017-05-24 09:19:22

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

1 answer(s)
S
Sergey Gladyshev, 2017-05-24
@Resident234

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 question

Ask a Question

731 491 924 answers to any question