Skip to content

Add git format-patch cheatsheet - #98

Draft
alycda wants to merge 2 commits into
mainfrom
claude/review-shared-conversation-9rtetw
Draft

Add git format-patch cheatsheet#98
alycda wants to merge 2 commits into
mainfrom
claude/review-shared-conversation-9rtetw

Conversation

@alycda

@alycda alycda commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds tools/cheat/cheatsheets/community/git/format-patch, covering git format-patch usage: exporting the last N commits (as separate files or a single stdout file), exporting a specific commit range, --numbered/--cover-letter/--thread options, and applying patches with git am/git apply.
  • Sourced from a shared Claude conversation on the topic.

Test plan

  • cheat git/format-patch renders correctly locally

Generated by Claude Code

Covers exporting commits as .patch files (single/multiple, by count or
range) and applying them with git am/apply.
@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

⊕ Entity-level changes

tools/cheat/cheatsheets/community/git/format-patch

Status Type Name
+ chunk lines 1-20
+ chunk lines 21-24

Summary: 2 added across 1 file

functions and classes, not lines · sem

git apply my-patch.patch

# --
# https://git-scm.com/docs/git-format-patch No newline at end of file

@alycda alycda Aug 14, 2026

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# https://git-scm.com/docs/git-format-patch
# see https://git-scm.com/docs/git-format-patch or `man git format-patch`

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.

2 participants