Is there any way to undo all un-pushed commits (committed them to the wrong branch without pushed) without loosing the changes.
Noting that my commits are 3.