Applying commits from patch files
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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