Loading...
Loading...
Compare original and translation side by side
git branch --show-current
git config --get commit.gpgsign
git status
git diff --stat HEAD
git log --oneline -10commit.gpgsign=truemainmasterAskUserQuestion({
questions: [{
question: "現在 main ブランチにいます。このままコミットしますか?",
header: "ブランチ確認",
options: [
{ label: "main のままコミット", description: "現在のブランチに直接コミットする" },
{ label: "作業ブランチを作成", description: "新しいブランチを作成してからコミットする" }
],
multiSelect: false
}]
})git checkout -b <branch>git branch --show-current
git config --get commit.gpgsign
git status
git diff --stat HEAD
git log --oneline -10commit.gpgsign=truemainmasterAskUserQuestion({
questions: [{
question: "You are currently on the main branch. Do you want to commit directly here?",
header: "Branch Confirmation",
options: [
{ label: "Commit on main", description: "Commit directly to the current branch" },
{ label: "Create a working branch", description: "Create a new branch before committing" }
],
multiSelect: false
}]
})git checkout -b <branch>git diff HEAD -- <file>git diff HEADgit diff HEAD -- <file>git diff HEADgit add -pgit add -p提案するコミット(N件):
コミット 1: feat(auth): JWTトークンによる認証を実装
対象ファイル:
- src/auth/jwt.ts(新規)
- src/auth/middleware.ts(変更)
- tests/auth/jwt.test.ts(新規)
コミット 2: chore: ESLint設定を更新
対象ファイル:
- .eslintrc.json(変更)
この内容で進めますか?Proposed commits (N items):
Commit 1: feat(auth): Implement authentication with JWT tokens
Target files:
- src/auth/jwt.ts (new)
- src/auth/middleware.ts (modified)
- tests/auth/jwt.test.ts (new)
Commit 2: chore: Update ESLint configuration
Target files:
- .eslintrc.json (modified)
Do you want to proceed with this content?AskUserQuestion({
questions: [{
question: "GPG 署名が有効になっています。Claude Code はパスフレーズを入力できないため、このセッションでは --no-gpg-sign でコミットします。よいですか?",
header: "GPG 署名",
options: [
{ label: "--no-gpg-sign でコミット", description: "このセッションのみ GPG 署名をスキップする" },
{ label: "キャンセル", description: "処理を中断する(ターミナルから手動でコミットしてください)" }
],
multiSelect: false
}]
})GPG 署名が必要なため処理を中断しました。
ターミナルから以下のコマンドを実行してください:AskUserQuestion({
questions: [{
question: "GPG signing is enabled. Since Claude Code cannot enter passphrases, commits will be made with --no-gpg-sign in this session. Is this okay?",
header: "GPG Signing",
options: [
{ label: "Commit with --no-gpg-sign", description: "Skip GPG signing only for this session" },
{ label: "Cancel", description: "Abort processing (please commit manually from the terminal)" }
],
multiSelect: false
}]
})Processing aborted because GPG signing is required.
Please execute the following commands from the terminal:
「--no-gpg-sign でコミット」を選んだ場合、グループ順にコミットを作成する。
**body が必要な場合**(変更の背景・理由・詳細を補足したいとき):
```bash
git add <file1> <file2> ...
git commit [--no-gpg-sign] -m "$(cat <<'EOF'
<type>(<scope>): <subject>
<変更の背景・理由・詳細>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
EOF
)"git add <file1> <file2> ...
git commit [--no-gpg-sign] -m "$(cat <<'EOF'
<type>(<scope>): <subject>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
EOF
)"[--no-gpg-sign]git log --oneline -Ngit log --oneline -3✓ 2件のコミットを作成しました
abc1234 feat(auth): JWTトークンによる認証を実装
def5678 chore: ESLint設定を更新
If "Commit with --no-gpg-sign" is selected, create commits in group order.
**When a body is needed** (when you want to supplement the background, reason, or details of the change):
```bash
git add <file1> <file2> ...
git commit [--no-gpg-sign] -m "$(cat <<'EOF'
<type>(<scope>): <subject>
<Background, reason, and details of the change>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
EOF
)"git add <file1> <file2> ...
git commit [--no-gpg-sign] -m "$(cat <<'EOF'
<type>(<scope>): <subject>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
EOF
)"[--no-gpg-sign]git log --oneline -Ngit log --oneline -3✓ Created 2 commits
abc1234 feat(auth): Implement authentication with JWT tokens
def5678 chore: Update ESLint configuration<type>(<scope>): <subject>
<body>| type | 用途 |
|---|---|
| feat | 新機能 |
| fix | バグ修正 |
| refactor | リファクタリング(動作変更なし) |
| test | テストの追加・修正 |
| docs | ドキュメント変更 |
| chore | ビルド・CI・設定などの雑務 |
| style | フォーマット変更(動作変更なし) |
<type>(<scope>): <subject>
<body>| type | Usage |
|---|---|
| feat | New feature |
| fix | Bug fix |
| refactor | Refactoring (no functional changes) |
| test | Test addition/modification |
| docs | Documentation changes |
| chore | Miscellaneous tasks like build, CI, configuration |
| style | Formatting changes (no functional changes) |
.env--no-verifygit status.env--no-verifygit status