This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1️⃣ Find dangling commits (stuff Git still remembers but isn't on any branch) | |
git fsck --lost-found | |
# Example output: | |
# dangling commit 9fc0edbb460dbee05f45692ca8d90dd5c186db5f | |
# dangling commit cd83da8675a1796f73d37aecf3e27e830866a45f | |
# dangling commit 4f04e7075c71e019f15d2bbfa309af7541c19d05 | |
# dangling tree eec7b722983844713db4e8e62cf3b844334d1f4b | |
# dangling commit 440dca3dd23762588697352e0509ddbf9cb1e381 |