Git-push requires netlify credentials

Hi, @mcquain78. That directory is created when you run netlify lm:install. Did you run that command? If not, please try doing that.

If you did already run that or if doing so doesn’t resolve the issue, what is the output of the command netlify lm:info?

Thanks @luke , yeah, it was netlify lm:install which I was missing. it resolved my issue. thanks for the support.

1 Like

Hi, @luke . After reading through this thread and changing the git-config in the helper folder, I was able to get the credential keychain working, but everytime I use a git command I see this error twice.

git: 'credential-netlify' is not a git command. See 'git --help'.

Here is what I hope will be helpful terminal output from various commands based on this thread:

jack@Jacks-MBP mhm-assets % netlify lm:install
  βœ” Checking Git version [2.33.1]
  βœ” Checking Git LFS version [3.0.2]
  βœ” Checking Git LFS filters
  βœ” Installing Netlify's Git Credential Helper for Mac OS X
  βœ” Configuring Git to use Netlify's Git Credential Helper

   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚                                                                        β”‚
   β”‚   Run this command to use Netlify Large Media in your current shell    β”‚
   β”‚                                                                        β”‚
   β”‚   source /Users/jack/Library/Preferences/netlify/helper/path.zsh.inc   β”‚
   β”‚                                                                        β”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

jack@Jacks-MBP mhm-assets % netlify lm:info
  βœ” Checking Git version [2.33.1]
  βœ” Checking Git LFS version [3.0.2]
  βœ” Checking Git LFS filters
  βœ– Checking Netlify's Git Credentials version
    β†’ Check that Netlify's Git Credential helper is installed and updated to the
…
jack@Jacks-MBP mhm-assets % git config -l
credential.helper=osxkeychain
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
user.name=JackBDart
user.email=spamme385@gmail.com
include.path=/Users/jack/Library/Preferences/netlify/helper/git-config
credential.helper=
credential.helper=netlify
credential.helper=osxkeychain
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
remote.origin.url=https://github.com/JackBDart/mhm-assets.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.main.remote=origin
branch.main.merge=refs/heads/main
lfs.repositoryformatversion=0
lfs.https://f17f2ca8-18da-4722-b1c3-1704d998c893.netlify.app/.netlify/large-media.access=basic
jack@Jacks-MBP mhm-assets % git push origin main
git: 'credential-netlify' is not a git command. See 'git --help'.
git: 'credential-netlify' is not a git command. See 'git --help'.
Everything up-to-date

Hi, @JackB. I believe the issue in this case is that this step is being skipped:

   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚                                                                        β”‚
   β”‚   Run this command to use Netlify Large Media in your current shell    β”‚
   β”‚                                                                        β”‚
   β”‚   source /Users/jack/Library/Preferences/netlify/helper/path.zsh.inc   β”‚
   β”‚                                                                        β”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Because that command isn’t being run, the current shell doesn’t know about the Git credential helper. Would you please test running that command and let us know if it resolves the issue or not?

Note, that line should also be added automatically by the netlify lm:install command to the file .zshrc in your home directory as well. I recommend double checking that as well to confirm it is happening.

If you still see the error, we’ll be here to keep troubleshooting.