Skip to main content

Module git

Module git 

Source

Functions§

commit_files
Stage files and create a commit.
gitignore_content
Content for .agent-vault/.gitignore
install_pre_commit_hook
Install the pre-commit hook in the repository’s hooks directory.
open_repo
Open an existing git repository at the given path.
pre_commit_hook_script
Pre-commit hook script that blocks commits containing unencrypted private key material.
pull
Pull latest from the remote (if one exists). Best-effort; silently skips if no remote.
remove_dir_from_index
Remove a directory from the git index by its relative path within the vault. relative_path should be relative to the repo root (e.g., “.agent-vault/agents/bot1”).