← スキル一覧に戻る

git-sync-rebase
by JiKl-coding
This project is about creating agents, skills and studying copilot or experimenting with it.
⭐ 1🍴 0📅 2026年1月20日
SKILL.md
name: git-sync-rebase description: Safely sync a branch with origin/main using fetch + rebase, with an optional "accept current" conflict policy.
git-sync-rebase
Instructions
Use this skill when you need to:
- commit local changes (if requested),
- fetch from origin,
- rebase onto
origin/main, - resolve conflicts using a deterministic policy.
Workflow
Inspect
- Run
git status --porcelain=v1 -b - If needed:
git diff --stat
Fetch
- Run
git fetch --prune origin
(Optional) Add + commit
- Stage:
git add -A(or the user-specified scope) - Commit: require a user-provided message (ask if missing)
Rebase
- Run
git rebase origin/main
If conflicts happen
- List conflicted files:
git diff --name-only --diff-filter=U
If the user requested “accept current”:
-
For each conflicted file:
git checkout --ours -- <file>git add <file>
-
Continue:
git rebase --continue -
If Git reports an empty commit:
git rebase --skip
Verify
git status -sbshould be clean
Safety
- Do not force-push unless explicitly requested.
- If a force push is required after rebase, prefer
git push --force-with-leaseand ask for confirmation.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です