清除git reflog

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了清除git reflog相关的知识,希望对你有一定的参考价值。

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).
  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

以上是关于清除git reflog的主要内容,如果未能解决你的问题,请参考以下文章