CheatSnip

Related

Apply Patch

git

Apply a series of patches from a mailbox

Initialize Repository

git

Create an empty Git repository in a directory to start version controlling your project

Commit Changes

git

Create a commit to permanently record staged changes in the repository history with a descriptive message

git/format-patch

Create Patch

Prepare patches for email submission

git
patch
email

Command

git format-patch

Explanation

git format-patch is used to prepare patches for email submission. It prepares the patches for email submission.

Examples

Create patches for last 3 commits

git format-patch HEAD~3

More

Revert Commit

git

Create new commit that undoes changes

Compute Object ID

git

Compute object ID and optionally create a blob from a file

Clone Repository

git

Clone an existing Git repository from a remote server to your local machine, creating a complete copy with full history

CheatSnip

Lightning-fast access to essential developer commands and code snippets. Search, copy, and master your favorite tools with our comprehensive cheat sheets.

Poorna Prakash

Quick Links

Git CommandsDockerNPMKubernetesYour Favorites

Legal

Terms & ConditionsPrivacy PolicyCookie Preferences

Company

About UsContact

© 2025 CheatSnip. All rights reserved.

Made with ❤️ for developers