Quantcast
Channel: Get a list of all Git commits, including the 'lost' ones - Stack Overflow
Viewing all articles
Browse latest Browse all 13

Answer by yakoda for Get a list of all Git commits, including the 'lost' ones

$
0
0

@bsimmons

git fsck --lost-found | grep commit

Then create a branch for each one:

$ git fsck --lost-found | grep commitChecking object directories: 100% (256/256), done.dangling commit 2806a32af04d1bbd7803fb899071fcf247a2b9b0dangling commit 6d0e49efd0c1a4b5bea1235c6286f0b64c4c8de1dangling commit 91ca9b2482a96b20dc31d2af4818d69606a229d4$ git branch  branch_2806a3 2806a3$ git branch  branch_6d0e49 6d0e49$ git branch  branch_91ca9b 91ca9b

Now many tools will show you a graphical visualization of those lost commits.


Viewing all articles
Browse latest Browse all 13

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>