
Maria Clara Orozco Caro
Preguntaalguien podría ayudarme a solucionar este error?
intenté el comando del profe, y el un comentario (añadí -u) y aun me sale el error
SSD M2@DESKTOP-I73933O MINGW64 /c/xampp/htdocs/git (master) $ git push origin master To https://github.com/julioh99/Blog.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/julioh99/Blog.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. SSD M2@DESKTOP-I73933O MINGW64 /c/xampp/htdocs/git (master) $ git push -u origin master To https://github.com/julioh99/Blog.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/julioh99/Blog.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.

Pablo Aquino
El mensaje te indica que primero debes realizar un
git pull
git pull origin master --allow-unrelated-histories
Luego vuelves a realizar el
git push

Manuel Ojeda
Cuando se hace el primer push desde tu equipo muchas veces sale mejor utilizar por única ocasión la bandera --force:
git push origin master --force