5 ms·
Footnote 3: git prune deletes all objects that cannot be reached from a ref. If the user runs this command, they may lose content. In what cases would a user l
by RansomTime 12y ago
Footnote 3:
git prune deletes all objects that cannot be reached from a ref. If the user runs this command, they may lose content.
In what cases would a user lose content? When something is added but not committed only?
- m0tive 12y agoWhen you've committed something, but then rebased or reset the branch position so the commit is not longer in the history of any branch or tag. This usually isn't a problem, because when you rebase work you are making a copy of the commit so references to the data should be the same. I also think it's worth noting, `git gc`, which is triggered automatically occasionally, actually runs `git prune`.