You can use the command git rebase with interactive option. To use it, type git rebase -i <hash>, where <hash> is the commit hash before the list of commits that you want to rearrange. With that, the default editor will open and changing the line order, you will change the commits order.
-- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.