Reverse git checkout -f

Asked

Viewed 56 times

0

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

  • 1

    I think that that link can help you.

  • 3

    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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.