Made a pull request, then made a few extra commits inadvertently and cannot return to the first commit in the branch.
What i do:
git reset HEAD@{10}
git add .
git commit --amend --no-edit
git push origin areaSelection
Error:
To https://github.com/YaroshenkoYaroslav/WorldEdit.git
! [rejected] areaSelection -> areaSelection (non-fast-forward)
error: failed to push some refs to 'https://github.com/YaroshenkoYaroslav/WorldEdit.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.
How can i fix this?