+ 2
how to connect git and github in terminal?
Terminal
8 Antworten
+ 5
1)check if you have SSH set up on your PC(if not then generate one)👇
https://docs.github.com/en/enterprise/2.15/user/articles/checking-for-existing-ssh-keys
2) add remote origin to you local repo.👇
https://docs.github.com/en/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line
3) now you can push the changes onto GitHub but make sure you commit changes first.
4) if yous still face any kind of error message then try searching it on internet for viable answers and/or post a question regarding the same here.
🙂👍
+ 2
git@github.com: Perrmision denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. <=> I got this comment, and what to do next???? ?
+ 2
Szymon this might be because you haven't generated a new SSH key and added it to your system.👇
https://docs.github.com/en/enterprise/2.15/user/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
+ 2
Looks like you haven't added your SSH key correctly.
Just have a look at this video for reference 👇
https://youtu.be/cqS911MDy90
+ 1
There's an awesome tutorial right here in SL community made.
https://www.sololearn.com/learn/1236/?ref=app
+ 1
$ ssh- keygen -t rsa -b 4096 -C "my@email.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/user/szymo/.ssh/id_rsa): konsola-repositories
Enter passphrase ( empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in konsola-repositories
Your public key has been saved in konsola-repositories.com
The key fingerprint is: SHA258: hXUTi..............
But if I try put
$ git push-u origin master THEN
git@github.com: Promission denied ( publickey).
fatal: could not read from remote repository.
Please make sure you have the correct access rights and the repository exist.
-I don't now what do now-
0
git@github.com: Perrmision denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. <=> I got this comment, and what to do next???? ?
0
git@github.com: Perrmision denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. <=> I got this comment, and what to do next???? ?