Somehow when I git init
ed my latest project a month or so ago I ran the command in the directory one directory higher than the root of my project.
So my repository is in the ./project
directory and not the ./project/my-new-project
directory. I don't know how I didn't realize the issue earlier, but I just never looked for the .git directory until now.
Is there a way, without killing my project, to move the repository to the proper directory and then tell git what the new base of the project is? Just moving the directory doesn't work. Git thinks all files have been deleted.