I am newbie to git and I committed a big mistake. Other related thread didn't solve my problem. Here is what happened, it feels like "git rm" worked like linux rm command.
In the beginning I added development folder into git repo using
git add dir_name1
During last couple of days I created few more files in that directory and renamed a few, I think it requires manually adding new files in git, as I was committing all kind of changes after that but new files didnt save in repo.
Today after finishing the work, I decided to add those new files using
git add dir_name1
I guess with that new files will be found and added automatically, but when I saw that some temporary files (file ending with "~" in ubuntu) were also added.
In order to remove those tmp files I thought that "git rm" is the counterpart of "git add" so I could do "git rm dir_name1" followed by delete all files ending with ~ manually, and do "git add dir_name1" again then it will be ok.
so what i did was
git rm -r -f dir_name1
My God, the entire directory is missing,restoring with "git reset" and few other tricks didnt restore those new files.
Does "git rm" removes just like linux "rm" command? is there a way to recover those files.
SOSSSSS