Newbie needs some help undoing a mess!
I was tring to push my site to a git repository, so I used the git add command. Then, before I did the commit, I realized I had added everything from my root folder instead of just the directory I wanted. Since I didn't want to do that commit, I used the git rm --chached command to remove everything, thinking I was only changing what would be pushed to git. I also used git clean.
Now, I realize those commands actually deleted the files on my site! What have I done? If anyone can help me put things back in place, I would really appreciate it. -JB
git reset --soft origin/mastergit rm --cachedand then clean up withgit clean, everything will be gone since at that point all your files are unknown to git, and it will remove them. (read the man page ofgit-clean)git fsck --lost-found), I'm fairly sure the directory structure is gone.