After I type 'git reverse ' in the terminal of vscodium, it always throws this message at me.

Auto-merging app/build/posts.html
CONFLICT (content): Merge conflict in app/build/posts.html
error: could not revert 0cc6763... new blog
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git revert --continue".
hint: You can instead skip this commit with "git revert --skip".
hint: To abort and get back to the state before "git revert",
hint: run "git revert --abort".
hint: Disable this message with "git config advice.mergeConflict false"

Then as the hints say, I type 'git status', fix the error, then commit and push again. But again the same message shows and I have no idea what to do. Getting mad as a beginner.

As i found no useful guides online, please help me to fix this issue without AI.

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 1 month ago (1 child)

I type ‘git status’, fix the error, then commit and push again.

Did you git add the modified file subsequent to changing it, as the git message says?

  • source
  • hideshow 1 child comment
  • [–] [S] 1 point 1 month ago

    Yes I did. But still the message displayed again and again.

    But now the issue is fixed by using git reset --hard commit_hash which is mentioned by another commenter.

    Thank you for your response.

  • source
  • parent