When I moved or renamed some files, I lost histories too. But I was trying to reach on TortoiseGit and SourceTree application.
When I tried to reach on git bash command, I figure out that I can see the history.
$Git log
After spending a couple of hour on the internet about the reason, Finally, I found my answer.
Tortoise git default settings, showing us just actual files history. I meant, if you rename of if you move any file or folder, you can not see history.
For the seeing history, you have to click below check box on the TortoiseGit settings.
git add -A .
after you have moved folder/files. Make sure you don't do any edits. – IsmailS Aug 21 '14 at 15:09git add {empty directory}
is a NOOP. Anyways, it sucks to have to use--follow
just because we moved files – rfabbri Nov 6 '16 at 22:44