Skip to content

Instantly share code, notes, and snippets.

@Hanaasagi
Created March 25, 2019 09:56
Show Gist options
  • Save Hanaasagi/d274a02c057d19531d4cb1b6cf5ba9e3 to your computer and use it in GitHub Desktop.
Save Hanaasagi/d274a02c057d19531d4cb1b6cf5ba9e3 to your computer and use it in GitHub Desktop.
清理 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