Answer the question
In order to leave comments, you need to log in
How do I get Git to notice a change in the contents of a directory that has been replaced with the same name?
I had a frontend folder in my my_site
directory, I push the my_site directory to gihab
after some time, I delete the frontend folder with all the contents in it and transfer the folder there from another place with the name frontend. But with :
git add .
git commit "some commit"
writes: There
is nothing to commit on the master branch, there are no changes in the working directory,
and if you try to push:
it push -u origin master
, then I don’t have any changes, and the old version of everything hangs there
How to make the contents change frontend directory was noticed by git?
Answer the question
In order to leave comments, you need to log in
Either the added directory is identical to the previous one, or it is ignored.
Are the directories different? What's in .gitignore? What does git status say?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question