wikiti
3/28/2017 - 9:33 AM

Apply a git patch outside a repository

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