The Geek Stuff shows you 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.How to Create and Apply Patches in GIT using diff and apply Command
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.