Created
May 19, 2023 16:07
-
-
Save prehensilecode/9d8f14922d49bb259cc7fadf4c07c237 to your computer and use it in GitHub Desktop.
`git mv` all files but not directories 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 bin | |
| find . -not -type d -and -not -path '*/\.git/*' -exec git mv {} bin \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment