AGENT SKILL
git-merge
Merge current branch into main with --no-ff, preserving all commits for traceability
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- git-merge
- description
- Merge current branch into main with --no-ff, preserving all commits for traceability
- argument-hint
- optional commit message or instructions
- disable-model-invocation
- false
03 SKILL.md 正文
Context
- Current branch: !
git branch --show-current - Commits to merge: !
git log --oneline main..HEAD 2>/dev/null - Changed files: !
git diff main...HEAD --stat 2>/dev/null - Working tree clean: !
git status --short
Your task
Merge the current branch into main using --no-ff, preserving all individual commits for traceability.
Steps
- Ensure working tree is clean (no uncommitted changes). If not, abort and warn.
- Recommend syncing with main first:
git rebase origin/main(see git-sync skill). If the user declines, proceed anyway. - Switch to main:
git checkout main && git pull origin main - Merge with no-ff:
git merge --no-ff <branch>- The default merge commit message is fine, or use user-provided message
- Confirm the merge result with
git log --oneline --graph -10
Rules
- Always use
--no-ffto create a merge commit node, even if fast-forward is possible - Never use
--squash— individual commits must be preserved for traceability - Never delete the source branch automatically — let the user decide
- If there are merge conflicts, report them and stop. Do not auto-resolve.
$ARGUMENTS
04 同仓库更多 Skills
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
★ 0
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
★ 0
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms
★ 0
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
★ 0
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
★ 0
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms
★ 0