Created
August 25, 2022 22:26
-
-
Save joe-warren/8400fe3684249de0ceb832a68b663434 to your computer and use it in GitHub Desktop.
Move untracked files in git into a subdirectory
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
| mkdir junk | |
| for file in $(git ls-files --others --exclude-standard); do mv "$file" junk; done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will potentially overwrite files with the same name, so be warned