git ignore uploaded directory 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
# exclude everything
somefolder/*
# exception to the rule
!somefolder/.gitkeep
*
*/
!.gitignore