git:git_fsck
Differences
This shows you the differences between two versions of the page.
git:git_fsck [2016/11/21 12:20] – created peter | git:git_fsck [2019/11/29 15:02] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== GIT - git fsck ====== | ||
- | |||
- | This is GIT's file system checker, which makes sure that every available object is reachable and valid. | ||
- | |||
- | This is useful (as with reflog) to recover deleted branches, but especially useful with recovering remote branches. | ||
- | |||
- | <code git> | ||
- | git branch | ||
- | bug-fix | ||
- | master | ||
- | * new-feature | ||
- | |||
- | git checkout master | ||
- | Switched to branch ' | ||
- | |||
- | git branch | ||
- | bug-fix | ||
- | * master | ||
- | new-feature | ||
- | |||
- | git rev-parse --short new-feature | ||
- | c033e5e | ||
- | |||
- | git branch -D new-feature | ||
- | Deleted branch new-feature (was c033353). | ||
- | |||
- | git fsck --lost-found | ||
- | Checking object directories: | ||
- | dangling commit 4113bc5d0d3ad3047e76b0ea67e8d8bc82f74821 | ||
- | dangling commit c033e5e21e2a89920a1a8b0a4e31d16b423e420b | ||
- | dangling blob c700db9f3785252428d20bb87f09a33d634dd9f1 | ||
- | dangling tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | ||
- | dangling commit ff70d170cb69f044fb595d06ce90a3c6962bfe82 | ||
- | |||
- | git branch | ||
- | bug-fix | ||
- | * master | ||
- | |||
- | git branch new-feature c033 | ||
- | |||
- | git branch | ||
- | bug-fix | ||
- | * master | ||
- | new-feature | ||
- | </ | ||
git/git_fsck.1479730834.txt.gz · Last modified: 2020/07/15 09:30 (external edit)