You can follow the below process step by step:
1- use below to list all unreachable commitsgit fsck --unreachable
2- to show unreachable commit hash bygit show hash
3- copy all log, you can see log like, unreachable blob, commit, tree.
4- apply git stash with log having commit hashgit stash apply [replace hash]