Git Clean sensitive data in commit history
Tool:
pamac install git-filter-repo
Steps:
# in repo
gitleaks detect -v
cat << EOF > /tmp/leaks
MY_PASSWORD1==>***REDACTED***
MY_TOKEN2==>***REDACTED***
EOF
git filter-repo --force --replace-text /tmp/leaks --debug
git remote oprigin add <git-repo-url>
git push origin --all --force
```basRefs:Refs:h
rm -f /tmp/leaks
For all developers:
```bash
rm -rf ./repo
git clone <>