errores que me marca: fatal: no email was given and autodetection is disabled. fatal: the current branch main has no upstream branch. per...

Guillermo Pulos

Guillermo Pulos

Pregunta
studenthace 4 años

errores que me marca:

fatal: no email was given and autodetection is disabled. fatal: the current branch main has no upstream branch. permission denied (publickey). fatal: could not read from remote repository

10 respuestas
para escribir tu comentario
    Héctor Eduardo López Carballo

    Héctor Eduardo López Carballo

    studenthace 4 años

    Tienes un problema de autenticación según lo que entiendo de tu mensaje de error, entonces tienes que verificar que hayas generado la llave ssh correctamente, que la hayas añadido al ssh-agent, que éste esté corriendo y que en github esté bien configurada tu llave. También que tu correo en git sea el mismo que tienes en github.

    Guillermo Pulos

    Guillermo Pulos

    studenthace 4 años

    ayer intenté lo que decía en otro comentario de la clase que era crear una nueva llave y agregarla, lo cuál pude hacer pero también me marca error al hacer push de VS

    Guillermo Pulos

    Guillermo Pulos

    studenthace 4 años

    Screen Shot 2021-10-06 at 9.25.58 a.m..png

    Héctor Eduardo López Carballo

    Héctor Eduardo López Carballo

    studenthace 4 años

    A ver, corre el comando

    git remote -v
    y manda una captura, pls. Asegurate que tengan el link de ssh.

    Guillermo Pulos

    Guillermo Pulos

    studenthace 4 años

    si está agregada...

    Héctor Eduardo López Carballo

    Héctor Eduardo López Carballo

    studenthace 4 años

    Agregaste la llave pública a tu cuenta de github?

    Guillermo Pulos

    Guillermo Pulos

    studenthace 4 años

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

    git push origin main:main 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.

    Guillermo Pulos

    Guillermo Pulos

    studenthace 4 años

    ya resolví lo de main pero me sigue marcando esto: Please make sure you have the correct access rights and the repository exists.

    git status -z -u git symbolic-ref --short HEAD git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track) refs/heads/main refs/remotes/main git ls-files --stage -- /Users/gpa/Documents/PROYECTOS/CURSOPREWORK/github/helloWorld.html git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) git remote --verbose git cat-file -s 4e97adaa8739397644a4b3a1c0c78da19b990769 git config --get commit.template git show --textconv :helloWorld.html git push origin main:main 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.

    Guillermo Pulos

    Guillermo Pulos

    studenthace 4 años

    muchas gracias. ahora me marca lo siguiente:

    fatal: The current branch main has no upstream branch. To push the current branch and set the remote as upstream, use

    git push --set-upstream origin main

    git push -u origin main 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.

    Héctor Eduardo López Carballo

    Héctor Eduardo López Carballo

    studenthace 4 años

    Hola!

    No has configurado tu usuario y correo para poder trabajar con github. Ya usaste los comandos

    git config --global user.name ""
    y
    git config --global user.email ""
    ?

Curso de Prework: Entorno de Desarrollo en macOS

Curso de Prework: Entorno de Desarrollo en macOS

Configura tu entorno de desarrollo en macOS con herramientas esenciales como Google Chrome y Visual Studio Code. Aprende a manejar Git y GitHub para versionar tu código y crea tu primera app con ReactJS. Curso ideal para iniciar.

Curso de Prework: Entorno de Desarrollo en macOS
Curso de Prework: Entorno de Desarrollo en macOS

Curso de Prework: Entorno de Desarrollo en macOS

Configura tu entorno de desarrollo en macOS con herramientas esenciales como Google Chrome y Visual Studio Code. Aprende a manejar Git y GitHub para versionar tu código y crea tu primera app con ReactJS. Curso ideal para iniciar.