Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
清理 reflog
#!/usr/bin/bash
git reflog expire --expire-unreachable=now --all
git gc --prune=now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment