ruby on rails - recover deletion from "Git init folder" -


i had folder ror code lets call "subfolder" under main folder call "mainfolder" made mistake , ran "git init subfolder" "main folder" command deleted of code there except tmp, log , empty app directory

i further pulled git remote subfolder without realizing files got deleted

then touch readme

then add . commit -m "first commit" that's when got files message

master 34f2e90] first commit 42 files changed, 84328 insertions(+) create mode 100644 readme create mode 100644 log/development.log create mode 100644 tmp/cache/assets/c7a/6a0/sprockets%2f442a717507a3dde80b7d59671208324c create mode 100644 tmp/cache/assets/c9f/560/sprockets%2f8e5a9738e9bc15478e026d98335454f9 create mode 100644 tmp/cache/assets/cbf/380/sprockets%2f4f4c8476962893413bc66624ebedc372

then

git push origin master

counting objects: 127, done. delta compression using 2 threads. compressing objects: 100% (85/85), done. writing objects: 100% (126/126), 389.53 kib, done. total 126 (delta 14), reused 0 (delta 0)

is there way recover deleted files?

thanks

git init not delete files. adds .git directory.

you must have accidentally run command delete files. can show output of shell "history" command commands surrounding event?


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -