Skip to content
All lessons

Tech Insights· stackoverflow.com

Want to exclude a directory from git diff? Use git diff old new --name-only | grep -v '/tests/' | xargs git diff old new --. Replace old/new with your branches.

Shared by

Read on stackoverflow.com
  • Bash
  • Git

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us