changed the order in which git commands are run