Hi, I’ve got two sites on Netlify, both repositories are hosted on GitHub.
Site A has Netlify CMS and LMS enable and Site B does not.
I have no problem pulling Site B from GitHub to a new computer, however pulling the repository of Site A from GitHub will prompt me to enter credential of
Same issue. I set up a repository with Netlify LMS with GitHub - all working fine.
Now I have a new computer and need to clone the repository (plus the LMS files) to my local development machine. I have the following stalled under sudo:
Checking Git version [Git-132)]
Checking Git LFS version [3.0.2]
Checking Git LFS filters
Checking Netlify’s Git Credentials version [0.1.10]
But as above the cli keeps asking for username and password - I’ve no idea what to do next, any suggestions?
Hi, @martin.m.riley. I’m not sure why you are using sudo as it should not be required. If fact, I think it could be the source of the problem.
When you run netlify lm:install it configures the Git credential helper - for the user that runs the command. If you are using sudo (a command that changes the user) then my best guess is you are configuring it for some other user (root maybe).
You should run the netlify lm:install command as the same user you will be using to interact with Git and the Netlify CLI tool. Also, this command should then add a source command to your default shell configuration file (like .bash_profile or .zshrc). Please check the appropriate file to confirm that line is being added.
Please see this post for an example of the source command. If that doesn’t resolve the issue, please let us know.