I'm trying to set up my computer to be using my github account, here's what I've got:
In my locally where the project is kept:
$ git remote -v
origin ssh://[email protected]/djleprechaunz/OscProject.git (fetch)
origin ssh://[email protected]/djleprechaunz/OscProject.git (push)
and
ssh-add -l
2048 [key1] dave@mycomputername (RSA)
2048 [key2] [email protected] (RSA)
(Sorry, not sure about the security of posting the whole key up).
When I try
git fetch
it pops up with a dialog 'An application wants access to the private key '[email protected]', but it is locked'
What should I be doing here? I tried putting in my github password, but that doesn't work.
Go to your local repository and update your remote by git remote set-url origin git+ssh://[email protected]/username/reponame.git - you can check it first by git remote -v ); Here you go, just touch t; git add t; git commit -m "test"; git push and confirm yes to enjoy the password-free world.
git push) and enter your username. For the password you need to generate a Personal Access Token. Go to https://github.com/settings/profile select the Developer Settings on the right. Select Personal Access Token Generate new token .
To git clone using a password, simply provide the username for the git account, and you will be prompted with the password. git clone https://username@<repository_url> Cloning into 'private-repo' Password for 'https://<username>@<repository_url>: remote: Enumerating objects: 3, done.
you need to put the passphrase you entered while creating the ssh key when it prompts for the password
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With