tengo un error al hacer git push origin master por segunda vez y evidencia el cambio del nombre del post “Bienvenido a Hyperblog” Usernam...

Pregunta de la clase:
Uso de GitHub
Luis Carlos Kristen Ospitia

Luis Carlos Kristen Ospitia

Pregunta
studenthace 5 años

tengo un error al hacer git push origin master por segunda vez y evidencia el cambio del nombre del post “Bienvenido a Hyperblog”

Username for ‘https://github.com’: luiskristen@gmail.com

Password for ‘https://luiskristen@gmail.com@github.com’:

To https://github.com/kringsman/hyperblog.git

! [rejected] master -> master (fetch first)

error: failed to push some refs to 'https://github.com/kringsman/hyperblog.git

hint: Updates were rejected because the remote contains work that you do

hint: not have locally. This is usually caused by another repository pushing

hint: to the same ref. You may want to first integrate the remote changes

hint: (e.g., ‘git pull …’) before pushing again.

hint: See the ‘Note about fast-forwards’ in ‘git push --help’ for details.

2 respuestas
para escribir tu comentario
    Jeferson Stiven Parra Mahecha

    Jeferson Stiven Parra Mahecha

    studenthace 5 años

    Tienes que traer los cambios del repositorio remoto.

    git pull origin master

    y luego si hacer push.

    git push origin master
    Pablo Gabriel Arenas Grimaldo

    Pablo Gabriel Arenas Grimaldo

    studenthace 5 años

    haz intentado haciendo git pull? si no, y si tienes cambios que deseas hacerles push, primero haz git stash para ´separarlos´, luego git pull para traerte todos los cambios nuevos, luego git pop para reintegrar tus cambios. Espero esto te ayude

Curso de Git y Github [Empieza Gratis]

Curso de Git y Github [Empieza Gratis]

Deja de versionar tus proyectos usando tu propio sistema de control de versiones. Mejor usa Git, el sistema de control de versiones por excelencia que utiliza la industria tecnológica. Aprende a trabajar con git, conceptos básicos, clonar un repositorio y gestionar tus proyectos alojándolos en tu repositorio local y en GitHub.

Curso de Git y Github [Empieza Gratis]
Curso de Git y Github [Empieza Gratis]

Curso de Git y Github [Empieza Gratis]

Deja de versionar tus proyectos usando tu propio sistema de control de versiones. Mejor usa Git, el sistema de control de versiones por excelencia que utiliza la industria tecnológica. Aprende a trabajar con git, conceptos básicos, clonar un repositorio y gestionar tus proyectos alojándolos en tu repositorio local y en GitHub.