Clean-up and fixes to Git-related commands.