diff -qr -x .git ports/i3lock gitprogs/i3lock
... "briefly" compares the two directories recursively, excluding sub files / directories matching '.git'
diff -x .git -rupN original modified > path_for_original.patch
... create a patch that incorporates the changes orgiginal -> modified, excluding the .git directory
cd original && patch -p1 < ../path_for_original.patch
... apply the patch from the above example
cd original && patch -p1 -R < ../path_for_original.patch
... remove the changes applied in the example above
2026-04-11 10:45:56
minicms - © 2020-2026 Simeon Simeonov