79673561

Date: 2025-06-20 14:37:13
Score: 1
Natty:
Report link

Thanks for your feedbacks.

What finally worked best for me was using git-filter-repo, see steps below:

  1. Install the git-filter-repo

    CMD: pip install git-filter-repo

  2. Select the file path that you obtained from the EVE tool scan and use the following Git command to check its commit history.

    CMD: $ git log --all -- file ./passwords

  3. Remove the directory that is there in the commit history that is exposing the secrets

    CMD : git filter-repo --invert-paths --path ./passwords

  4. Add the origin and push the changes to the origin

    CMD: git remote add origin (url link or clone repo link)

  5. to push the changes use this cmd:

    CMD: git push origin --force --all

  6. Push the tags that have changed:

    CMD :git push --force --tags

In my case, the git cherry-pick solution involved too many conflicts to solve and after more than 1h of testing, I gave up.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sabrina