Git · Senior · Question 4 of 76

What does git gc do?

Explanation

Loose objects are compressed into packfiles with deltas, and objects unreachable from refs and reflogs are removed after a grace period. Git runs it automatically.

Further reading

Problem with a question

Git · Senior · question 4

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