By giving a git checkout -f in a modified file is it possible to recover the lost changes? Some way to reverse git checkout -f
I think that that link can help you.
– WhoisMatt
In short: if it was not added to the history, the change is not traceable by git. The @Whoismatt link indicates a way to avoid these errors in the future, creating several stashes
– Jefferson Quesado