git-rebase
Use when: clean up or reorder commits with rebase while keeping history safe and reviewable.
ソース情報
- リポジトリ
- kimtth/agent-skill-100-lines-or-less
- ソースの最終更新活動
- 2026年6月26日 02:15
- 検出された SKILL.md の言語
- 英語
- スター
- 2
- フォーク
- 0
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
SKILL.md を表示中
SKILL.md
ソースの指示 · 読み取り専用プレビュー- name
- git-rebase
- description
- Use when: clean up or reorder commits with rebase while keeping history safe and reviewable.
Goal: a clear, linear history without losing work or rewriting shared commits.
Use for:
- tidying a branch before opening a pull request
- squashing, reordering, or editing local commits
- updating a feature branch onto the latest base
Workflow:
1. Confirm the commits are not yet shared, or coordinate first.
2. Rebase interactively to squash, reword, or reorder.
3. Update onto the base branch to incorporate new changes.
4. Resolve conflicts commit by commit.
5. Run tests after rebasing, before pushing.
6. Force-with-lease to push a rewritten branch safely.
Operations:
- squash fixups into the commit they belong to
- reword messages for clarity
- reorder to tell a logical story
- drop dead or accidental commits
Rules:
- never rebase commits others have already based work on
- use --force-with-lease, never plain --force
- keep each commit building and passing where feasible
- back up the branch before a risky rebase
GitHubで見る