Top "Patch" questions

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

git add --interactive "Your edited hunk does not apply"

I'm trying to use git add --interactive to selectively add some changes to my index, but I continually receive the "…

interactive patch git-add
patch: Only garbage was found in the patch input

I produced a diff.txt file with the command (executed from ~): diff -r /full/path/to/directory/A /full/path/…

ubuntu diff patch
Write byte at address (hexedit/modify binary from the command line)

Is there any straightforward way to modify a binary from the commandline? Let's say I know that my binary contains 1234…

shell scripting hex patch edit
How can I visualize per-character differences in a unified diff file?

Say I get a patch created with git format-patch. The file is basically a unified diff with some metadata. If …

git vim diff patch
How to visualize or format a diff / patch file?

I have a patch file (unified diff), like the output from svn diff, git diff, or diff -u .... I want …

formatting diff visualization patch
Create a patch including specific files in git

Let's say that I am 7 commits ahead of the origin/master repo. I would like to create a patch that …

git file patch
Create "patch" between revisions?

It seems SVN's "patch" functionality is not exactly what I want. What I really want is to create a diff …

svn tortoisesvn diff patch
How do I apply rejected hunks after fixing them?

I'm trying to apply a patch to a file using git apply. The overall patch failed, so I used git …

git conflict patch git-apply
How to apply several patches using hg command line when there is already uncommitted changes?

I use the following command to apply a patch in Mercurial, without committing it : hg import patch.diff --no-commit It …

command-line mercurial versioning patch
How to read .rej files, i.e

I'm having trouble applying a patch to my source tree, and it's not the usual -p stripping problem. patch is …

diff patch