Skip to content
Foxipa
Code Completion 4 Challenges

Complete the Git commands: Git prune-packed: Remove Loose Copies of Packed Objects

In a disposable repository, create at least one commit, create a pack containing the repository's reachable objects without deleting the loose objects, and confirm that both representations exist. Run `git prune-packed --dry-run` and record the loose object paths it proposes to remove. Then run `git prune-packed` and verify that those loose files are gone while the packed object remains readable. Finally, explain why this operation does not depend on whether the commit is reachable.

Advanced ~6 min read

Challenge 1

Complete the Git command to remove loose packed copies.

bash Your answer
git  --dry-run

Press Ctrl⌘Enter to check your answer

Challenge 2

Complete the Git command to remove loose packed copies.

bash Your answer
git 

Press Ctrl⌘Enter to check your answer

Challenge 3

Complete the Git command to remove loose packed copies.

bash Your answer
git  --quiet

Press Ctrl⌘Enter to check your answer

Challenge 4

Complete the Git command to remove loose packed copies.

bash Your answer
git  --help

Press Ctrl⌘Enter to check your answer