Skip to main content
Version: 1.1.0 (latest)

common.git

is_clean_and_synced

def is_clean_and_synced(repo: Repo) -> bool

[view_source]

Checks if repo is clean and synced with origin

force_clone_repo

def force_clone_repo(repo_url: str,
repo_storage: FileStorage,
repo_name: str,
branch: Optional[str] = None,
with_git_command: Optional[str] = None) -> None

[view_source]

Deletes the working directory repo_storage.root/repo_name and clones the repo_url into it. Will checkout branch if provided

get_fresh_repo_files

def get_fresh_repo_files(
repo_location: str,
working_dir: str = None,
branch: Optional[str] = None,
with_git_command: Optional[str] = None) -> FileStorage

[view_source]

Returns a file storage leading to the newest repository files. If repo_location is url, file will be checked out into working_dir/repo_name

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.