Skip to content

Instantly share code, notes, and snippets.

View tgkprog's full-sized avatar
🎉
Focusing

Tushar Kapila tgkprog

🎉
Focusing
View GitHub Profile
@tgkprog
tgkprog / maintenance.sh
Last active May 23, 2016 17:11 — forked from Zoramite/maintenance.sh
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