I'm looking for a way / post-commit hook to go through all committed files on every commit and remove some "known" confidential information from those files - like passwords with sed
.
After this cleanup is done I would like to have those files commited into a seperate repository where another team can pick up the changes with just updating their repo.
Does someone have a handy shell script to achieve this ? Or provide me some documentation how to access the actual commited files and work them?
Thanks in advance
- mat1010