Interacting with os to cd and run git checkout commands.