Git · Senior · Question 34 of 76
What does git replace do?
- 1Replaces all occurrences of a string in the history
- 2Swaps the remote URL of the repository for another
- ✓Correct answer: Makes Git use one object in place of another
Explanation
Replacement refs can graft old history onto a truncated repository or patch a bad commit's view. They're local unless you push refs/replace/*, so use them carefully.