Git: Exclude a folder when diffing

cogoo

C.OG

Posted on September 13, 2019

Git: Exclude a folder when diffing

When doing a git diff, especially between branches, you may be greeted with a mountain of changes that you have to sift through to find what you're looking for.

Consider excluding certain folders:

git diff -- ':!<folder-name>'

You can also exclude multiple folders:

git diff -- ':!<folder-name>' ':!<other-folder>'`
šŸ’– šŸ’Ŗ šŸ™… šŸš©
cogoo
C.OG

Posted on September 13, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related