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 (1)
Nice! I wrote a bash function which uses
fzfwhich let's you select exactly which files to include in the diff. I should augment it with an exclusion list that can be defined in bashrc. github.com/schnej7/dotfiles/blob/m...