GIT: I'm trying to push a file to a repo of a friend but errors on public key.
Where and how do we define public / private keys?
git remote -v returns:
any help is appreciated.
| |||||
|
1
|
You probably have to add your public key to github. https://help.github.com/articles/generating-ssh-keys
| ||
1
|
Came across this question quite late but I was facing same problem. Here is what I did that worked for me.
Use ssh instead of http. Remove origin if its http.
Add ssh url
Generate ssh key inside .ssh/ folder. It will ask for path and passphrase where you can just press enter and proceed.
Copy the key. You can view your key using. If you hadn't specified a different path then this is the default one.
Add this key to your github account. Next do
You will get a welcome message in your console.
cd into to your project folder.
git push -u origin master now works! | ||
1
|
I just had to deal with this issue. @user3445140's answer helped me, but was much more than I needed to do.
|