D
D
Dmitry Quick2020-05-02 12:31:36
git
Dmitry Quick, 2020-05-02 12:31:36

How to upload a local repository to GitHub?

There is a folder with a local repository on the computer. There is also an already created repository on GiHub. How to push a local repository to GitHub? SSH key on GitHub connected. Entered the command in the terminal

git remote add origin [email protected]: user/репозиторий
.
The following command ( git push -u origin master) resulted in the following error:
The authenticity of host 'github.com (140.82.118.4)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-05-02
@yellowmew

As a rule, I transfer local turnips easier:
1. create an empty turnip on githosting
2. clone from an empty turnip
3. copy all files from the local turnip to the one cloned from the hosting
4. add, commit, push
forget about the old local turnip storage location and continue to live in a new one related to hosting

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question