Today in production, it is found that git will not submit a blank directory when submitting it. The details are as follows:
1. Create a new blank folder
mkdir test
2.git add test
3.git status
You will find that there is no prompt for a new folder directory to be generated
4. The reason is that git ignores empty directories by default. To add a blank directory, you need to execute the following command in the code folder
find . -type d -empty -exec touch {}/.gitignore \;
After execution, you can add a blank directory to the folder.