Skip to content

docs: document post-merge cleanup steps in CLAUDE.md - #70

Merged
MRyutaro merged 2 commits into
mainfrom
docs/cleanup-after-merge
Jun 17, 2026
Merged

MRyutaro merged 2 commits into
mainfrom
docs/cleanup-after-merge

Conversation

@MRyutaro

Copy link
Copy Markdown
Owner

概要

PR マージ後の後片付けを習慣として明文化する。CLAUDE.md の「開発の進め方(worktree / ブランチ)」に 後片付け(PR マージ後) サブセクションを追加。

追記した手順

  1. マージ済みを確認してから片付ける(未マージは消さない)
  2. worktree 削除(git worktree remove → prune)
  3. マージ済みローカルブランチ削除(git branch -d)
  4. 削除済みリモート追跡ブランチの整理(git fetch --prune)
  5. main 最新化(git pull --ff-only)
  6. 検証用の一時ファイル・スクラッチ(/tmp 等)の削除

worktree を作らず現在のブランチで進めた軽微な作業では worktree 削除は不要、という注記も付けた。

ドキュメントのみ(コード変更なし)。

🤖 Generated with Claude Code

MRyutaro and others added 2 commits June 17, 2026 16:26
worktree/ブランチ運用に「後片付け(PR マージ後)」の手順を追記。マージ確認 →
worktree 削除 → マージ済みローカルブランチ削除 → リモート追跡の prune → main 最新化 →
一時ファイル/スクラッチ削除、を明文化する。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
後片付け手順に例外を追記: feature-experiment ブランチは削除せず残す。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MRyutaro
MRyutaro merged commit 81c286d into main Jun 17, 2026
7 checks passed
@MRyutaro
MRyutaro deleted the docs/cleanup-after-merge branch June 17, 2026 07:27
@github-actions
github-actions Bot restored the docs/cleanup-after-merge branch June 17, 2026 07:27
@MRyutaro
MRyutaro deleted the docs/cleanup-after-merge branch June 17, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant