Git · Maintenance
git reflog expire
Trims old reflog entries. Be careful: this removes a recovery path.
Syntax
git reflog expire --expire=30.daysExample
Example
git reflog expire --expire=30.days --all
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.