Git · Middle · Question 33 of 75
What does git fetch --prune do?
- ✓Correct answer: Deletes remote-tracking branches gone from the server
- 2Removes old commits to make the repository much smaller
- 3Deletes local branches that have already been merged
Explanation
Without pruning, origin/old-feature stays in git branch -a forever. Set fetch.prune = true to make it the default.