How to Create and Apply Patches in GIT using diff and apply Command
Posted on: 03/25/2014 10:29 AM

The Geek Stuff shows you how to Create and Apply Patches in GIT using diff and apply Command

How to Create and Apply Patches in GIT using diff and apply Command


If you are new to GIT, install git and get a jumpstart from this GIT introduction article.

The first time a file is committed to a project in GIT, a copy is stored. For all commits after that, GIT essentially stores instructions telling it how to transform the previous version of the project to the newly committed version.

In GIT, these instructions are called “diffs” . Whenever you checkout a branch, GIT will basically start at the original state of the project, and apply all of these diffs in order, to to get to the desired state.



Printed from Linux Compatible (http://www.linuxcompatible.org/news/story/how_to_create_and_apply_patches_in_git_using_diff_and_apply_command.html)