Create a patch file for Git from the differences of two text files, treating nonexistent files as empty

diff

diff --text --unified --new-file {{old_file}} {{new_file}} > {{diff.patch}}

click the source code to copy install diff on any operating system with command-not-found.com