Move git commands to its own class