Skip to content

Instantly share code, notes, and snippets.

@sliekens
Last active July 12, 2018 08:39
Show Gist options
  • Save sliekens/dd8a41ebfb8a2516c53d0974ca73bcdc to your computer and use it in GitHub Desktop.
Save sliekens/dd8a41ebfb8a2516c53d0974ca73bcdc to your computer and use it in GitHub Desktop.
Comparing git-ls-files to actual filenames
Compare-Object `
-ReferenceObject (git ls-files | Resolve-Path -Relative | Sort-Object) `
-DifferenceObject (Get-ChildItem -Recurse -File | Resolve-Path -Relative | Sort-Object) `
-CaseSensitive `
-SyncWindow 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment