type
status
date
slug
summary
tags
category
icon
password
Property
Apr 1, 2025 05:56 AM
一不小心把.env提交到git上了
于是使用神器git-filter-repo完全重写git历史记录
仅仅需要执行一条命令,就能把所有.env文件相关的内容彻底从git记录里面清除
git filter-repo --path-glob '.env' --invert-paths --force
更加通用的做法 BFG Repo-Cleaner