changed to use tuples and output git commands to console