I have been working on a project and I wrote a lots of code on it. Now some of the recent codes are gone(which is quite lot). The codes missing were in existing files. newly created files aren't effected. only files effected that they were exist before and I wrote additional codes on it.
The thing is I can't figure out what did that?
I have git in my project but using git log -- filename
doesn't give me any changes.
I was trying to recover a file using git diff but after that everything was fine. Can git change files like this?
I also did this solution to fix some git related error
I use vagrant with virtual box on windows. I haven't done any system restore or anything like that.
Do you have any idea what would cause this problem? How can I restore the code? Thanks.
Here is source tree status