UPDATE 2.19.2020: Well, I actually had installed git-lfs and NLM correctly. I figured this out by changing the remote url back to https and then I was able to git push origin master without issues. So, Netlify has issues with SSH.
HOWEVER I now have to type the username and password each time I want to push, for each of the github accounts I use on my machine. Which is highly annoying. If anyone has any suggestions on how to cache usernames and passwords for multiple github accounts using SSH & Netlify I’d love to hear them!
Hello, I’m new to Netlify, use a custom url: https://www.desolidstate.com/, have my static site repo on GitHub and had no problems pushing to this specific Netlify site before today. DNS propagated successfully the night after the original post so the pushes I made before trying to set up NLM & git-lfs are now live. Whoo Hoo for that!
I have Netlify-CLI installed, just installed git-lfs, Netlify-LM, I’m following the docs
I’ve tracked a couple of files, they are listed when I run
$ git lfs ls-files but I’m now having a problem when I push to github at the command line.
- my repo is linked to Netlify and set up for continuous deployment but now when I
git push origin masterI get a prompt for my github password which fails every time. I’ve tripled-checked the password. Here is the error message - it lets me try 3 times before kicking me out:
$ git push origin master Saving password to keychain failed Saving password to keychain failed Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
- strangely enough, I’m using macos and I access two different GitHub accounts using this machine and use SSH keys to distinguish between the two so I don’t have to type the passwords. See the blog post for how I have it configured.
- I’ve been using the SSH Config file technique - #4 in the post - for a while and haven’t had any problems. The account I use for my Netlify site is the secondary account - the work account in the post - thus is in the format:
$ git remote -v origin firstname.lastname@example.org_user1:work_user1/repo_name.git
- it may be an NLM issue, but i doubt it - however i did manually reinstall git-credential-netlify
$ brew tap netlify/git-credential-netlify $ brew install git-credential-netlify
- and checked .gitattributes .lfsconfig & .gitignore and they look ok
I’m really at a loss and really think it has to do with the SSH keys, but only know enough about Netlify to get myself into trouble.