Created
June 7, 2012 16:23
-
-
Save timmow/2889853 to your computer and use it in GitHub Desktop.
Add all empty directories within project to git
This file contains hidden or 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
| find . -depth -empty -type d -exec touch \{\}/.gitignore \; | |
| git add . | |
| git commit -m 'Sort out all the empty directories, as git does not track them by default' | |
| git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment