+ 2

how to connect git and github in terminal?

Terminal

5th Jul 2020, 12:52 PM
Szymon
Szymon - avatar
8 odpowiedzi
+ 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. 🙂👍
5th Jul 2020, 1:10 PM
Arsenic
Arsenic - avatar
+ 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???? ?
5th Jul 2020, 6:53 PM
Szymon
Szymon - avatar
+ 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
6th Jul 2020, 12:34 AM
Arsenic
Arsenic - avatar
+ 2
Looks like you haven't added your SSH key correctly. Just have a look at this video for reference 👇 https://youtu.be/cqS911MDy90
6th Jul 2020, 4:42 AM
Arsenic
Arsenic - avatar
+ 1
There's an awesome tutorial right here in SL community made. https://www.sololearn.com/learn/1236/?ref=app
5th Jul 2020, 12:58 PM
Slick
Slick - avatar
+ 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-
6th Jul 2020, 4:15 AM
Szymon
Szymon - avatar
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???? ?
5th Jul 2020, 6:53 PM
Szymon
Szymon - avatar
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???? ?
5th Jul 2020, 6:54 PM
Szymon
Szymon - avatar