Last active
June 28, 2019 15:01
-
-
Save gautamkrishnar/7996a755068eef23da9fd4dd2eff7238 to your computer and use it in GitHub Desktop.
Add all empty directories to github
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
#This shell script will find all empty directories and sub-directories in a project folder and creates a .gitkeep file, so that the empty directory | |
#can be added to the git index. | |
find * -type d -empty -exec touch {}/.gitkeep \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default empty directories are not added while using
git add .
command...