Write a git diff command result to file to manage the big changes and ignore the lock files
Luu Vinh Loc

Luu Vinh Loc @loclv

About: I got inspired by the [Karma](https://en.wikipedia.org/wiki/Karma) principle. Karma as action and reaction: if we show goodness, we will reap goodness.

Location:
Hanoi, Vietnam
Joined:
Jul 28, 2020

Write a git diff command result to file to manage the big changes and ignore the lock files

Publish Date: Feb 26
1 0

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
Enter fullscreen mode Exit fullscreen mode

When ignoring multiple files:

git diff branch-name-0..branch-name-1 -- . ':(exclude)*.lock' ':(exclude)*.yaml' ':(exclude)*.yml' ':(exclude)*.json' > git.diff
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment