清理系统和释放空间的工具,特别是对开发人员而言。
使用风险由您自己承担。
Command Line
Docker
docker system prune --all
Conda
conda clean --all
Git
Cleanup unnecessary files and optimize the local repository
git gc --aggressive --prune=now
Deleted merged branches (except formaster,main,developordev)
git branch --merged | egrep -v "(^\*|master|main|develop|dev)" | xargs git branch -d
Homebrew
brew cleanup -s
apt-get / aptitude
apt-get clean
# or
apt clean
# or
aptitude clean
Mac/Linux Cache Folder
rm -r ~/.cache
Yarn
yarn cache clean