Skip to content

Instantly share code, notes, and snippets.

@prehensilecode
Created May 19, 2023 16:07
Show Gist options
  • Save prehensilecode/9d8f14922d49bb259cc7fadf4c07c237 to your computer and use it in GitHub Desktop.
Save prehensilecode/9d8f14922d49bb259cc7fadf4c07c237 to your computer and use it in GitHub Desktop.
`git mv` all files but not directories into a subdirectory
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