Skip to content

Instantly share code, notes, and snippets.

@wusher
Created February 11, 2014 19:47
Show Gist options
  • Save wusher/8942684 to your computer and use it in GitHub Desktop.
Save wusher/8942684 to your computer and use it in GitHub Desktop.
#!/bin/bash
for FILEPATH in $(git diff --name-status | grep -v "^D" | awk '{ print $2; }' | uniq )
do
grep -rn "<<<<*" $FILEPATH
grep -rn "====*" $FILEPATH
grep -rn ">>>>*" $FILEPATH
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment