Skip to content

Files

Latest commit

d150cec · May 21, 2022

History

History

git-orphans

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 21, 2022
Jan 11, 2022

README.md

git orphans

Find all objects that aren't referenced by any other object

Git alias:

orphans = fsck --full

Example:

git orphans

To help an orphan, we can create a new branch with the orphan's commit hash, then merge it into our current branch:

git branch foo <commit>
git merge foo