Write the result of a git diff command to a file to manage large changes and ignore lock files.
git diff branch-name-0..branch-name-1 -- . ':(exclude)*.lock' > git.diff
When ignoring multiple files:
git diff branch-name-0..branch-name-1 -- . ':(exclude)*.lock' ':(exclude)*.yaml' ':(exclude)*.yml' ':(exclude)*.json' > git.diff
Top comments (0)