Skip to content

Instantly share code, notes, and snippets.

@kazu634
Created November 20, 2011 14:29
Show Gist options
  • Save kazu634/1380314 to your computer and use it in GitHub Desktop.
Save kazu634/1380314 to your computer and use it in GitHub Desktop.
git管理下の空ディレクトリに.gitkeepを作成するスクリプト
#!/bin/bash
/usr/bin/find . -type d -name .git -prune -p -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