My company asked us to install git guardian for security reason and as a part of installation I happened to do the following:
- Added the API key in the envionmental variables
- Added the
pre-commit-config.yamlfile in my root directory [C:\Users\umasravanthi.k01] - Installed Python and added its path in the env variables.
- Ran:
pip install ggshield; pip install pre-commit; and while runningggshield install --mode globalthis command in cmd I'm getting this Error: unable to find git executable in PATH/PATHEXT
Can someone help me?
ggshield(GitGuardian/ggshield) includes a PR (432) which shows it executesgitcommands based on the OS PATH.So double-check your
%PATH%environment variable:C:\Program files\Git\binshould be in it before you start executingpip install pre-commit.