Skip to content

Instantly share code, notes, and snippets.

View tgkprog's full-sized avatar

Tushar Kapila tgkprog

View GitHub Profile
tgkprog /
Last active May 23, 2016 17:11 — forked from Zoramite/
Git Maintenance Commands
# Verifies the connectivity and validity of the objects in the database
git fsck —unreachable
# Manage reflog information
git reflog expire —expire=0 —all
# Pack unpacked objects in a repository
git repack -a -d -l
# Prune all unreachable objects from the object database