how to gitignore all of the content of a folder code example
Example 1: git ignore content of a folder
# exclude everything
somefolder/*
# exception to the rule
!somefolder/.gitkeep
Example 2: gitignore all files and folders in only one folder
*
*/
!.gitignore