<p>Want to exclude a directory from <code>git diff</code>? Use <code>git diff old new --name-only | grep -v '/tests/' | xargs git diff old new --</code>. Replace old/new with your branches. From: </p>
By clicking “Accept all”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.