Skip to content

Switch Branch Node

Data/GitHub/Repository

Switch an existing local branch. Local changes are rejected by default; disabling Require Clean retains normal Git overwrite checks.

data_github_switch_local_branchdataLong running
Inputs4
Outputs5
Security exposure5/10
Packagedata

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
5/10Medium
PrivacyPotential sensitivity of processed data.
5/10Medium
PerformanceRuntime or resource pressure.
7/10High
GovernancePolicy, audit, or compliance impact.
5/10Medium
ReliabilityOperational stability considerations.
7/10High
CostExternal or compute cost impact.
10/10High

Input Pins

4

Input

Execution
exec_in

Run the operation

Repository

Struct
repository

FlowPath to a Git working tree in local, cloud, or memory storage. Requires Git on the runtime host.

FlowPathFlowPath3 fields
pathstringrequired
store_refstringrequired
cache_store_refstring | null
Schema enforced

Branch

String
branch

Existing local branch name

Require Clean

Boolean
require_clean

Reject tracked changes and untracked files before switching

Default true

Output Pins

5

Success

Execution
exec_out

Operation completed

Error

Execution
error

Operation failed; inspect Error Message

Repository Path

Struct
repo_path

Repository in the original store for the next repository node

FlowPathFlowPath3 fields
pathstringrequired
store_refstringrequired
cache_store_refstring | null

Output

String
output

Git output with credentials removed

Error Message

String
error_message

Failure details, empty on success

Node Info

Internal name
data_github_switch_local_branch
Category
Data/GitHub/Repository