I need to clean one branch from commits sent by others to another branch where my branch was merged.
You will probably need to use a similar command
git checkout --detach master;
git log --reverse --no-merges --author="somebody" ^not-in-here yes-in-here --pretty='%h' | while read revision;
do git cherry-pick %i;
If you know GIT well, please message me, I'll explain the situation to better price it.