I have always used diff -b
to make patches even when working on a git repo
.
- What is the difference between the two, does
git diff / git format-patch
also internally makes use of the linux/unixdiff
command? (I know the difference betweengit diff/git format-patch
) - Also, how is patching with
patch -p1
different fromgit apply
. Can i apply a patch generated by thediff
command (diff -b
) and apply usinggit diff
? - Is it a good practice to use
git diff/apply
when working withgit
? I have been usingdiff/patch
and never faced any problem.
Please correct me if my knowledge of things mentioned above is not adequate.