Skip to main content
Jeremias Meister - Tools & Pipeline

Action Source Control

Advanced Git Operations

Performs advanced Git operations: Checkout, CreateBranch, DeleteBranch, AddWorktree, RemoveWorktree, ResetSoft, ResetMixed, ResetHard, Clean, Fetch, StashSave, StashPop, CreateTag, DeleteTag.

Node IDAdvancedGitAction

Parameters

ParameterTypeRequiredDefaultDescription
Repository Path repository_path file_picker Yes — Path to the local Git repository.
Operation operation enum
  • Checkout
  • CreateBranch
  • DeleteBranch
  • AddWorktree
  • RemoveWorktree
  • ResetSoft
  • ResetMixed
  • ResetHard
  • Clean
  • Fetch
  • StashSave
  • StashPop
  • CreateTag
  • DeleteTag
Yes Checkout The Git operation to perform.
Target target string No — Branch name, tag, or commit hash. Used by Checkout (branch/commit/tag to switch to), ResetSoft/Mixed/Hard (ref to reset to, defaults to HEAD), and CreateTag (object to tag, defaults to HEAD).
Branch Name branch_name string No — Branch name for CreateBranch, DeleteBranch, and AddWorktree.
Start Point start_point string No — Commit or ref to start the new branch from (CreateBranch). Defaults to HEAD.
Worktree Path worktree_path file_picker No — Filesystem path for the new worktree (AddWorktree) or the worktree to remove (RemoveWorktree).
Remote Name remote_name string No origin Remote name to fetch from (Fetch). Defaults to origin.
Stash Message stash_message string No — Description for the stash entry (StashSave). Optional.
Tag Name tag_name string No — Name of the tag to create or delete (CreateTag, DeleteTag).
Tag Message tag_message string No — Message for an annotated tag (CreateTag). If omitted, a lightweight tag is created.
Clean Mode clean_mode enum
  • UntrackedFiles
  • UntrackedDirs
  • All
No UntrackedDirs What to remove during Clean. UntrackedFiles removes loose files only. UntrackedDirs also removes untracked directories. All additionally removes ignored files and directories (-xdf equivalent).
Force force boolean No false Force the operation where applicable: Checkout skips dirty-tree safety check, DeleteBranch skips merge check, CreateBranch overwrites an existing branch, CreateTag overwrites an existing tag.
Username username string No — Optional Git username for HTTPS authentication (Fetch). Leave empty to use SSH or the system credential helper.
Access Token access_token string No — Name of the secret containing the personal access token for HTTPS authentication (Fetch). Takes priority over the system credential helper.

Inputs

InputTypeRequiredDescription
Execute input0 object Yes Execution signal to trigger the operation.

Outputs

OutputTypeIdentifierDescription
Result output0 object git_advanced_result Result details from the operation (operation name, status, and any relevant output data).