Recently, I staged many changes in over 100 files. Then, unfortunately, I did a checkout of a previous commit. After the checkout all my changes are gone and not visible anymore (I'm using Fork to work with git). Are my changes really lost or can I recover the changes anyhow?
Please help!
That last part needs to be verified in command-line, outside of VSCode.
If not, as commented by Philippe,
git fsck
can somewhat help.But check first what extension you are using: a double-click on a commit history should not switch to it directly, unless your VSCode+Git Lens also uses the Git Graph extension.
That extension includes issue 39: "On double click - Checkout branch", which seems close to what you have experienced.