Jessica Smith
08/09/2022, 2:48 PMclone_url = "XXXXXXX"
with TemporaryGitRepo(clone_url) as temp_repo:
    flow = extract_flow_from_file(
        file_path=os.path.join(
            temp_repo.temp_dir.name,
            "path/to/flow/fil.py",
        ),
        flow_name="flow_name",
    )Rainer Schülke
08/09/2022, 3:00 PMgh_storage = GitHub(
    repo="your-organization/your-project",
    path="your/path/to-your-flow/your_flow.py",
    ref="master"
)
.....
with Flow(
    'your_flow',
    storage=gh_storage,
    ....
) as flow:
.....
The GitHub access token can be provided by your environment variables. I am not from Prefect but I use it a lot 😄