Push your current workspace content to the connected Git repository based on the configured filters.

Note: This will not update git sync settings in wmill.yaml. Settings can only be pulled from the repository as it is the source of truth.

{#if isNewConnection}

Settings that will be pushed to repository

Include paths: {uiState.include_path?.join(', ') || 'None'}
Exclude paths: {uiState.exclude_path?.join(', ') || 'None'}
{#if uiState.extra_include_path?.length > 0}
Extra include paths: {uiState.extra_include_path.join(', ')}
{/if}
Include types: {uiState.include_type?.join(', ') || 'None'}

To modify these settings, cancel and configure them in the workspace settings.

{/if} {#if !previewResult}
{/if} {#if previewJobId}
{#if previewJobStatus === 'running'} {:else if previewJobStatus === 'success'} {:else if previewJobStatus === 'failure'} {/if} Preview job: {previewJobId}
{/if} {#if previewError} {previewError} {/if} {#if previewResult && !previewError}

Changes to Push

{#if previewResult.changes?.length > 0} {:else}
No changes to push to the repository.
{/if}
{/if} {#if previewResult && !previewError} {@const hasChanges = previewResult.changes?.length > 0} {#if hasChanges}
{#if isNewConnection && onSaveWithoutInit} {/if}
{/if} {/if} {#if applyJobId}
{#if applyJobStatus === 'running'} {:else if applyJobStatus === 'success'} {:else if applyJobStatus === 'failure'} {/if} Push job: {applyJobId}
{/if} {#if applyError} {applyError} {/if}
{#if showCliInstructions}
# Setup (only needed if local folder not initialized yet)
npm install -g windmill-cli
wmill workspace add {$workspaceStore} {$workspaceStore} {window.location.origin}
wmill init --workspace {$workspaceStore} --repository {gitRepoResourcePath}

# Pull workspace content to git repository
wmill sync pull --workspace {$workspaceStore} --repository {gitRepoResourcePath}
{/if}