Files
30-seconds-of-code/snippets/find-lost-files.md
Isabelle Viktoria Maciohsek ed2f41b0d8 Bake dates into snippets
2021-06-13 19:47:48 +03:00

481 B

title, tags, firstSeen, lastUpdated
title tags firstSeen lastUpdated
Find lost files repository,advanced 2021-04-06T21:35:01+03:00 2021-04-13T21:10:59+03:00

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