Git Command returning error

Skip to first unread message

Arijan Zenuni

Mar 15, 2023, 11:36:15 AM3/15/23
to git-for-windows
I've received a new laptop and re-installed git cli.

I'm trying to commit changes to repo and I'm getting the following error:

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

Is this something I missed during install?

Johannes Schindelin

Apr 3, 2023, 11:12:02 AM4/3/23
to Arijan Zenuni, git-for-windows
Hi Arijan,
The `secrets-update` command is not part of Git for Windows, and never has
been. You must have gotten it from somewhere else.

I _suspect_ that you copied it into `C:\Program Files\Git\mingw64\bin`,
but that directory is "owned" by Git for Windows. In other words, it is
not the correct place to put such a command. Instead, put it into


Arijan Zenuni

Apr 3, 2023, 3:50:08 PM4/3/23
to Johannes Schindelin, git-for-windows
Hello Johannes,

Great! Thank you, I’ve been able to resolve the issue since. 

Thank You,
Arijan Zenuni

From: Johannes Schindelin <>
Sent: Monday, April 3, 2023 8:11:56 AM
To: Arijan Zenuni <>
Cc: git-for-windows <>
Subject: Re: [git-for-windows] Git Command returning error
Reply all
Reply to author
0 new messages