Created
January 23, 2020 11:22
-
-
Save greghor/2a714826c4da8b7cc3828e94cab8eaf2 to your computer and use it in GitHub Desktop.
copy .gitignore in all folders that contains a .gitkeep
This file contains 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
#adapted from https://unix.stackexchange.com/a/180616 | |
find . -name ".gitkeep" -exec sh -c ' | |
for file do | |
dir=${file%/*} | |
cp data/raw/.gitignore "$dir" | |
done' sh {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment