Handles git operations including commit with locking and syncing with remote. Use for committing changes or syncing with origin.
This skill handles git operations securely using mutex locking for commits to prevent concurrency issues.
.git-commit.lock to ensure exclusive access.Acquire Lock:
.\.agent\skills\git-workflow\scripts\acquire-commit-lock.ps1
if ($LASTEXITCODE -ne 0) { throw "Failed to acquire commit lock" }
Analyze Changes:
git add .).Execute Commit:
# Single Line
.\.agent\skills\git-workflow\scripts\execute-git-commit.ps1 -Files @("file1", "file2") -Message "Commit message."
# Multi Line
.\.agent\skills\git-workflow\scripts\execute-git-commit.ps1 -Files @("file1", "file2") -Message "Title" -AdditionalMessages @("Details")
git status, git loggit fetch origin
git pull --rebase origin main
git push origin main
git fetch origin && git pull --rebase origin main && git push origin main