Clearing git reflog


/ Published in: Bash
Save to your folder(s)

This example shows how to clean up git's reflogs entries in order save space (see http://www.newartisans.com/blog/2008/04/diving-into-git.html).


Copy this code and paste it in your HTML
  1. $ git reflog expire --expire=1.minute refs/heads/master
  2. $ git fsck --unreachable # now I see those tarball blobs!
  3. $ git prune # hasta la vista, baby
  4. # git gc # cleanup and repack the repo

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.