2023-02-03

git: 'secrets' is not a git command

git: 'secrets' is not a git command

If you try to commit using GitHub Desktop, you may get the following error.

git: 'secrets' is not a git command. See 'git --help'.

git: 'secrets' is not a git command

This article will show you how to resolve this error.

Solution 1

Installing git-secrets using Homebrew may solve this problem.

$ brew install git-secrets

Solution 2

Creating a symbolic link to git-secrets installed with Homebrew in a GitHub Desktop package may solve the problem.

$ ln -s /usr/local/bin/git-secrets /Applications/GitHub\ Desktop.app/Contents/Resources/app/git/libexec/git-core/git-secrets

Ryusei Kakujo

researchgatelinkedingithub

Focusing on data science for mobility

Bench Press 100kg!