df_import_version_from_git
Import a version from a Git repository into DataForge, creating a new version or replacing an existing one. Preview before importing to avoid permanent data deletion.
Instructions
PERMANENTLY DELETES DATA IN DATAFORGE. Import a version from Git. target.method=create makes a new version; target.method=replace OVERWRITES THE VERSION IN THE PATH entirely. Run df_preview_import first. conflict_strategy=overwrite also applies deletions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| branch | Yes | ||
| target | Yes | ||
| options | No | ||
| project_id | Yes | DataForge project id | |
| version_id | Yes | Project version id | |
| commit_hash | No | ||
| connection_id | No | ||
| authentication | No | Git credentials, sent over TLS. Never logged, never returned. | |
| repository_url | Yes | ||
| idempotency_key | No | Optional UUID v4. Reusing a key within 24 hours replays the original response instead of applying the change twice. One is generated automatically when omitted. | |
| conflict_strategy | No | smart_merge |