Allow mirror override, restructure git commands to allow other branches.