Skip to content

Instantly share code, notes, and snippets.

@fakenickels
Last active February 23, 2016 18:19
Show Gist options
  • Save fakenickels/27a9a83666388648fe4b to your computer and use it in GitHub Desktop.
Save fakenickels/27a9a83666388648fe4b to your computer and use it in GitHub Desktop.
Move all git files to `app/` root directory
#!/bin/sh
for file in `g ls-files`; do
mkdir -p $(dirname app/$file)
g mv "$file" "app/$file" -f
done
# Note: also do a normal move for files in .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment