Precisei reverter um commit e localmente funciona bem. Agora quando vou dar PUSH pro meu repositório, ele me apresenta erro.
Minha tentativa
git fetch origin c6f1668e2fac57401a99a2184a47f0b58c15e403 git reset --hard FETCH_HEAD git add . git commit -m "revrt" git push
ERRO
! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://gitlab.com/XXX' 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.
Agora, se eu der PULL volta a uma versão que não quero. O que eu faço?
Obrigadooo! 🙂