Skip to content

Instantly share code, notes, and snippets.

@ry-kawa
Created May 12, 2015 05:39
Show Gist options
  • Save ry-kawa/ff15ef922dde7954e699 to your computer and use it in GitHub Desktop.
Save ry-kawa/ff15ef922dde7954e699 to your computer and use it in GitHub Desktop.
gitbash経由でリポジトリ上の空フォルダに.gitkeepを作成する
#!/bin/sh
find . -type d -name .git -prune -o -prune -o -type d -empty -print -exec touch {}/.gitkeep \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment