fgit remove commit gom remote branch code example Example: how to remove a commit from origin branch 1 $git rebase -i HEAD~2