Git · Senior · Question 34 of 76

What does git replace do?

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.

Further reading

Problem with a question

Git · Senior · question 34

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz