RMI / RMI/resources

Applying commits from patch files

Open
#59 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

git
Dominant language
No language data
Stars
17
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Based on https://mijingo.com/blog/creating-and-applying-patch-files-in-git

If branch-a has more commits than branch-b, this creates patch files under the patches directory where each patch file is a commit missing from branch-b.

git checkout branch-a
git format-patch branch-b -o patches

This will create .patch files in the patches/ directory like so:

patches/0001-a-commit-message.patch
patches/0002-another-commit-message.patch
...

Now, patch files can be emailed, and each applied anywhere like so:

git am patches/0001-a-commit-message.patch

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository file or documentation entry point. Start by reading the linked guide and checking the git format-patch and git am examples; done should be a clear repository resource explaining how to create and apply commit patch files.

Written by the indexing model from the issue text.

Assessment

Tech stack
git
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.