Skip to content

Instantly share code, notes, and snippets.

@iodic
Created March 28, 2018 09:41
Show Gist options
  • Select an option

  • Save iodic/7daa1667140b1649ded747963a1303d9 to your computer and use it in GitHub Desktop.

Select an option

Save iodic/7daa1667140b1649ded747963a1303d9 to your computer and use it in GitHub Desktop.
Exclude a directory from git diff
git diff -- . ':!directory_name'
@rajeshisnepali

Copy link
Copy Markdown

thank you.

@iodic

iodic commented Sep 13, 2019

Copy link
Copy Markdown
Author

Glad you found it useful. :)

@xzhih

xzhih commented Apr 9, 2020

Copy link
Copy Markdown

nice!

@mhenriquesa

Copy link
Copy Markdown

Thank you!

@silvenon

silvenon commented May 1, 2021

Copy link
Copy Markdown

Oh wow, this works, thanks!

@aryankarim

Copy link
Copy Markdown

appreciation and gratitude!

@3l3n01

3l3n01 commented Jan 14, 2023

Copy link
Copy Markdown

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment