@task
@cmdopts([
    ('force', 'f', 'forces git clean'),
])
def reset(options):

    force = options.get('force')
    if force:
        sh('git clean -dxf')
Return codebase to pristine state
dataset/ETHPy150Open geopython/pycsw/pavement.py/reset