Skip to content

Commit 57d9f03

Browse files
committed
📝 fsck as a last resort to restore changes
1 parent 94ad07a commit 57d9f03

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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)