@click.command()<EOL>@click.pass_context<EOL>@decorators.print_markers<EOL>def init(ctx):
<EOL>git = ctx.obj['<STR_LIT>']<EOL>click.echo("<STR_LIT>", nl=False)<EOL>for old in ['<STR_LIT>']:<EOL><INDENT>path = os.path.join(git.path, '<STR_LIT>', old)<EOL>if os.path.exists(path):<EOL><INDENT>os.remove(path)<EOL><DEDENT><DEDENT>for new in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>git.install_hook(new, hooks_manager.get_hook(new))<EOL><DEDENT>click.echo("<STR_LIT>")<EOL>config_path = os.path.join(git.path, '<STR_LIT>')<EOL>if not os.path.exists(config_path):<EOL><INDENT>click.echo("<STR_LIT>", nl=False)<EOL>with open(config_path, '<STR_LIT:w>') as f:<EOL><INDENT>f.write(yaml.safe_dump(<EOL>{'<STR_LIT>': ['<STR_LIT>', '<STR_LIT:true>']}))<EOL><DEDENT>click.echo("<STR_LIT>")<EOL><DEDENT>locking.init(git)<EOL>click.echo("<STR_LIT>", nl=False)<EOL>set_installed_version(git, easyci.__version__)<EOL>click.echo("<STR_LIT>")<EOL>
Initialize the project for use with EasyCI. This installs the necessary
    git hooks (pre-commit + pre-push) and add a config file if one does not
    already exists.