I accidentally pinned the template project inside the project working tree with the Git repository (I was inside the project folder, created the folder, entered it and typed yo gulp-webapp).
It happens, right?
So, first I returned the overwritten files with git checkout HEAD -- <filename>.
After that, typing git status, some unwanted files were displayed in the "Tracked Files".
I deleted them (via Sublime Text), and then they appeared in "Changes not set for commit." What for? Were they not tracked, that is, they were never added to the repository?
Then I deleted them using git -rm -rf. Now they appear in the staging area. What's happening.
How to make git forget about them?
source
share