1. Learn
  2. /
  3. Courses
  4. /
  5. Advanced Git

Connected

Exercise

Remove secrets file from repo

In your flight data pipeline project, you've accidentally committed the file, config.ini, containing sensitive API keys. You need to remove this file from the entire repository history using filter-repo.

Instructions 1/2

undefined XP
  • 1

    Use git filter-repo to remove the config.ini file from the entire history. Use the --force flag to override filter-repo restriction.

  • 2

    What is the new git log for the main branch after using git filter-repo? Review the last 3 commits.