Y
Y
Yourmind2019-10-31 13:20:39
git
Yourmind, 2019-10-31 13:20:39

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

1 answer(s)
V
Vitsliputsli, 2019-10-31
@Vitsliputsli

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 question

Ask a Question

731 491 924 answers to any question