send in .gitignore all file from afolder 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