git CLI
Table of Contents
- Run commands while not in a git directory
- Delete empty directories within a repository
- Purge files including their histories
- List all TODOs written by a specific user
Run commands while not in a git directory howto
Delete empty directories within a repository howto
Purge files including their histories howto
- Use BFG Repo-Cleaner
git clone --mirror git@github.com:yeonghoey/yeonghoey.git
java -jar ~/.local/bin/bfg.jar --strip-blobs-bigger-than 1M yeonghoey.git
cd yeonghoey.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive
git push