4
I need to perform a push
of files from my machine to Github but I’m not getting.
I leave below some lines of code that I used in cmd
trying to accomplish the commit
, push
, git init
and everything everyone says but nothing worked:
> git remote add origin [email protected]:gabriegsti/C
> git status
On branch master
nothing to commit, working tree clean
> git add *
> git status
On branch master
nothing to commit, working tree clean
> git commit -m "aqui coloco uma mensagem, tipo: comitando primeiro post"
On branch master
nothing to commit, working tree clean
> git push -u origin master
The authenticity of host 'github.com (192.30.253.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
> ssh-keyscan github.com >> ~/.ssh/known_hosts
O sistema não pode encontrar o caminho especificado.
You’re on Windows, do you check? You installed git as? From the last command you posted, the system did not detect the presence of the executable called
ssh-keyscan
. The failure was that you did not create your SSH key on your machine and did not send the public part to Github– Jefferson Quesado
Possible duplicate of Generate ssh key in git
– Jefferson Quesado