Skip to content

Commit f8160ec

Browse files
committed
📝 fsck as a last resort to restore changes
1 parent 9975abd commit f8160ec

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/productive/git/review.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,11 @@ controlled by two ``gc.*`` options:
269269

270270
You can increase these options to a longer time frame, but this is rarely
271271
useful.
272+
273+
``fsck``
274+
--------
275+
276+
`git fsck <https://git-scm.com/docs/git-fsck>`_ is the last resort when a commit
277+
is no longer in the reflog (for example, if you have *‘lost’* it with ``git
278+
stash drop``). With ``git fsck``, you can list all commit IDs that are not
279+
referenced.

0 commit comments

Comments
 (0)