0
$ git push origin master
To https://github.com/MarcusVSouza/cursoGitAlura.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/MarcusVSouza/cursoGitAlura.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.
Hello Antonio, I’ve done this way git pull dps git push keeps returning the msm error.
– Marcus Souza
I get it. Try following this answer https://answall.com/questions/272128/o-commandgit-push-n%C3%A3o-est%C3%A1-working-ap%C3%B3s-remove-a-commit
– Antônio Augusto Duarte
I used git push -f and it worked, thanks for the help.
– Marcus Souza
Never force a push like this, always after a pull check the status of your branch, surely other files were inserted in your repository. Another tip, never make changes to the Master branch, always use a secondary branch for this, when finishing the Feature that was in development just merge.
– Luis Eduardo