У меня нет внутренностей git, но следующие работы для меня.
git reset --hard <SHA of commit one commit before your first local commit > ( If commit order is RA-B-C if B and C are local commits RA is SHA you have to give)
git merge --squash ORIG_HEAD
git commit
Будет замечательно, если кто-нибудь сможет это объяснить.