Created
January 28, 2022 16:08
-
-
Save demonkoryu/61f4df5ab40b1efca3b3b66369d1c0fa to your computer and use it in GitHub Desktop.
Git: Find unchanged tracked files in directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff <(git diff --name-only) <(git ls-files -- sub/dir) | grep "^>" | cut -b3- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit: https://stackoverflow.com/a/55419932