Find lost files

Angelos Chalaris · Git, Repository · Apr 13, 2021

Prints a list of lost files and commits.

  • Use git fsck --lost-found to print a list of all dangling objects.
  • All appropriate files will be extracted into the .git/lost-found directory.
git fsck --lost-found
git fsck --lost-found
# dangling commit 3050fc0de
# dangling blob 807e3fa41
# dangling commit 59ff8481d

Recommended snippets