run git commands in the right folder