Skip to content

Instantly share code, notes, and snippets.

@sammoore
Created March 18, 2017 23:13
Show Gist options
  • Save sammoore/54f84df0d65480f17c22d2998cda7a4d to your computer and use it in GitHub Desktop.
Save sammoore/54f84df0d65480f17c22d2998cda7a4d to your computer and use it in GitHub Desktop.
Find files that are tracked by Git but also match the .gitignore.
#!/bin/bash
git ls-files -i --exclude-from=.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment