スキル一覧に戻る
v01d42

git

by v01d42

v01d42's dotfiles

0🍴 0📅 2026年1月20日
GitHubで見るManusで実行

SKILL.md


name: git description: | Git operations guide. Provides how-to for common git tasks. Use when:

  • Editing commit messages via rebase
  • Writing commit messages (Conventional Commits format)
  • Understanding git workflows

Git Skill

Guide for Git operations. For mandatory rules and permissions, see rules/git-github.md.

1. Editing Commit Messages (Rebase)

Edit commit messages in a local branch using interactive rebase.

1.1. Prerequisites

  • Local branch not yet pushed
  • Automate interactive operations with environment variables
  • Understand that hash values will change

1.2. Steps

# 1. Find the commit hash to edit
git log --oneline -10

# 2. Start rebase with "edit" via environment variable
GIT_SEQUENCE_EDITOR="sed -i '' 's/^pick <HASH>/edit <HASH>/'" git rebase -i <HASH>^

# 3. Edit the commit message
git commit --amend --allow-empty --no-verify -m "New message"

# 4. Continue rebase (get user permission)
git rebase --continue

1.3. Notes

  • Interactive rebase (-i flag) is allowed but must be automated
  • Always get user permission before git rebase --continue
  • Do not use on pushed commits as hash values change

2. Commit Message Format (Conventional Commits)

<type>: <brief description> (#<Issue number>)

<detailed description>

## Summary

- Same as detailed description is OK

## Background

- Briefly explain the background and purpose

## Changes

- Specific change 1
- Specific change 2

## Technical Details

- Technical implementation details
- Reasons for design decisions
- Focus on "why" throughout

## Verification

- Describe verification if performed

## Related URLs

- <Related Issue>
- <External URL>
- Others if applicable

2.1. Type Examples

TypeDescription
featNew feature
fixBug fix
docsDocumentation only
styleFormatting, no code change
refactorCode change without fix/feat
testAdding/updating tests
choreMaintenance, dependencies
ResourcePurpose
rules/git-githubMandatory rules and permissions
skills/githubGitHub-specific operations

スコア

総合スコア

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

レビュー

💬

レビュー機能は近日公開予定です