4
respostas

não consigo fazer um git push origin main ou master

Pessoal estou recebendo e seguindo erros.


vagne@MAVERICK-V8 MINGW64 /d/aluraMidi (main)
$ git config --global user.name "Vagner Sousa"

vagne@MAVERICK-V8 MINGW64 /d/aluraMidi (main)
$ git config --global user.email "vagner.s.sousa@outlook.com"

vagne@MAVERICK-V8 MINGW64 /d/aluraMidi (main)
$ git status
On branch main
nothing to commit, working tree clean

vagne@MAVERICK-V8 MINGW64 /d/aluraMidi (main)
$ git status
On branch main
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   index.html

no changes added to commit (use "git add" and/or "git commit -a")

vagne@MAVERICK-V8 MINGW64 /d/aluraMidi (main)
$ git add .

vagne@MAVERICK-V8 MINGW64 /d/aluraMidi (main)
$ git status
On branch main
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        modified:   index.html


vagne@MAVERICK-V8 MINGW64 /d/aluraMidi (main)
$ git commit -m"segundo teste"
[main 316f673] segundo teste
 1 file changed, 1 insertion(+)

vagne@MAVERICK-V8 MINGW64 /d/aluraMidi (main)
$ git push origin master
error: src refspec master does not match any
error: failed to push some refs to 'github.com:VagnerSiqueiraDeSousa/ProjetoMidi.git'

vagne@MAVERICK-V8 MINGW64 /d/aluraMidi (main)
$ git push origin 'github.com:VagnerSiqueiraDeSousa/ProjetoMidi.git'
error: src refspec github.com does not match any
error: failed to push some refs to 'github.com:VagnerSiqueiraDeSousa/ProjetoMidi.git'

vagne@MAVERICK-V8 MINGW64 /d/aluraMidi (main)
$ git push origin main
The authenticity of host 'github.com (20.201.28.151)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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


se alguem conseguir me ajudar ficarei muito grato![Insira aqui a descrição dessa imagem para ajudar na acessibilidade](https://cdn1.gnarususercontent.com.br/1/1187934/e48bfbe5-297f-404a-b5be-a5d73c735625.png)  
4 respostas

error: failed to push some refs to 'github.com:VagnerSiqueiraDeSousa/ProjetoMidi.git'

$ git push origin main The authenticity of host 'github.com (20.201.28.151)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'github.com' (ED25519) to the list of known hosts. git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

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

esse foi o ultimo erro

Oi, Vagner. Tudo bem?

Você chegou a gerar uma chave SSH na sua máquina e associou ela à sua conta no github?

opa Vitor tudo bem e com vc?

não lembro ter feito algo do tipo