Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How to create a patch

Answer:

Let say you have two folders, foo and bar.

The folder bar is originally copied from the folder foo, but later you have chanegd some files inside bar.

Now you want to create a patch (We will see later, when this patch applied to foo, it will produce the same contents as in bar).

# diff -crB foo bar > bar.patch

  1. How to apply a patch?
  2. Auto create complete directory structure when copying files in Linux
  3. Create password file for basic Apache authentication
  4. Create a SVN Repository on local drive
  5. Create a temp file in Linux

One Response to “How to create a patch”

  1. [...] the last post, you know how to create a patch for two [...]

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>