def get_git_checkout_command(url, version):
    commands = []
    commands.append('git init .')
    commands.append('git remote add origin {0}'.format(url))
    commands.append('git fetch origin')
    commands.append('git checkout {0}'.format(version))
    return commands
Get a git clone/checkout command.
dataset/ETHPy150Open ravello/testmill/lib/testmill/versioncontrol.py/get_git_checkout_command