Why isn't Git tracking changes in a subdirectory?

后端 未结 8 984
萌比男神i
萌比男神i 2020-12-15 07:52

I\'ve created git repository, added code and pushed it to GitHub.

Then locally, I\'ve edited the file Eila.Analyser/Program.cs, that was added to GitHu

8条回答
  •  遥遥无期
    2020-12-15 08:29

    My case was exactly what Timothy mentioned. I had a subfolder that was also a git repo. I removed the git from the subfolder but the 'parent git' stopped tracking it. Renaming the folder via windows explorer didn't fix the issue but renaming it through git did the job. So, I did '$ git mv folder-name folder-name-temp'.. than renamed back to its original name :)

提交回复
热议问题