
Tomás Felipe Beltrán Pulido
PreguntaHola a todos, he tenido un problema al hacer el push al final:
! [rejected] main -> main (non-fast-forward) error: failed to push some refs to 'git@github.com:Tom4sBeltr4n/Hyperblog.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Eso fue después de borrar master. También noté que apareció una rama main en mi local, aunque no sé cuándo la creé. Por favor ayúdenme, no entendí muy bien qué sucedió

Tomás Felipe Beltrán Pulido
En el momento de comentar me da la impresión de que ya había hecho un pull. No sé por qué no lo incluí en mi comentario anterior. Gracias igual, Polux

Abel Enrique Herrera Montiel
Lo que entiendo de ese mensaje de salida: Te rechazó debes hacer el pull primero para luego hacer el push, con esto garantizas que tienes la ultima versión de tu repositorio remoto.
git pull origin master git push origin master