Disclaimer: I’m not a git ninja, and I’m pretty sure a lot of people have written more sophisticated things on this topic. My only qualification is...
For further actions, you may consider blocking this person and/or reporting abuse
Really well described. Will reference this in the future.
See also
Rewrite your git history in 4 friendly commands
Salma Alam-Naylor ・ Sep 6 ・ 4 min read
How does this help?
git reset --soft origin/master
Can you explain?
Sure!
originis the original project and not your fork.origin/master, that commit represents the latest and greatest that the project has.origin/masterso that you are not behind the project's latest and greatest. The commit that you did after merging contains the right working tree that you want to submit.git reset --soft origin/master, when you commit again, you have the exact same right working working tree BUT its direct parent will beorigin/master. (1)(1) As the friendly manual says,
Hope that helps :)