Incorporating a pre-commit git hook for secrets detection is essential to enhance application security by preventing sensitive information from entering git repositories. The GitGuardian Shield, an open-source CLI tool, utilizes the GitGuardian detection engine via API to provide advanced and up-to-date detection capabilities, albeit with the trade-off of sending data externally and limited direct customization. To set it up, users need to generate an API key from the GitGuardian Dashboard and install the Shield using PIP or Brew, followed by installing the pre-commit hook either locally or globally. Testing ensures it functions correctly by identifying secrets, which can be ignored if necessary using a secure SHA-based ignore function. This tool serves as an additional defense layer, complementing server-side detection, and helps manage secrets efficiently while maintaining security standards.