Apply a git patch outside a repository
# Usage: git apply --reject --whitespace=fix --directory=<dir> <file> # Example: git apply --reject --whitespace=fix --directory=$(pwd) path/to/my/file.patch