Create:
$ git diff > file_name.diff
Apply:
$ git apply file_name.diff
It’s just a text file, so the extension can be anything, diff, patch, or nothing. The important thing is the file itself, not its tail.
Create:
$ git diff > file_name.diff
Apply:
$ git apply file_name.diff
It’s just a text file, so the extension can be anything, diff, patch, or nothing. The important thing is the file itself, not its tail.