You can achieve this in 2 easy steps
List lost stashes--> run this command for a project where all stashes were trashed:
git fsck --unreachable | grep commit | cut -d '' -f3 | xargs git log--merges --no-walk
Send a lost stash back where it comes from -->Let’s use the commit hash of the second stash:
git update-ref refs/stash 4b3fc45c94caadcc87d783064624585c194f4be8 -m"My recovered stash"