Top "Patch" questions

A patch is a piece of software designed to fix problems with, or update a computer program or its supporting data.

How to generate a git patch for a specific commit?

I need to write a script that creates patches for a list of SHA1 commit numbers. I tried using git …

git patch
How to apply a patch generated with git format-patch?

I have 2 git local repositories both pointing to the same remote repository. In one git repository, if I do git …

git patch
How to move certain commits to be based on another branch in git?

The situation: master is at X quickfix1 is at X + 2 commits Such that: o-o-X (master HEAD) \ q1a--q1b (quickfix1 …

git commit patch
How do I simply create a patch from my latest git commit?

I'm looking for the magic command of creating a patch from the last commit made. My workflow sometimes looks like …

git patch
Create patch or diff file from git repository and apply it to another different git repository

I work on WordPress based project and I want to patch my project at each new release version of WP. …

git diff patch git-diff git-apply
Using python's mock patch.object to change the return value of a method called within another method

Is it possible to mock a return value of a function called within another function I am trying to test? …

python unit-testing mocking patch
How to apply `git diff` patch without Git installed?

How can my client apply patch created by git diff without git installed? I have tried to use patch command …

git diff patch
How do I apply a diff patch on Windows?

There are plenty of programs out there that can create a diff patch, but I'm having a heck of a …

windows diff gnu patch
What is the main difference between PATCH and PUT request?

I am using a PUT request in my Rails application. Now, a new HTTP verb, PATCH has been implemented by …

http patch put httpverbs
How do you squash commits into one patch with git format-patch?

I've got eight commits on a branch that I'd like to email to some people who aren't git enlightened, yet. …

git patch squash git-squash