content of gitignore file code example
Example 1: git exclude folder
directory_to_exclude/
Example 2: git ignore content of a folder
# exclude everything
somefolder/*
# exception to the rule
!somefolder/.gitkeep
directory_to_exclude/
# exclude everything
somefolder/*
# exception to the rule
!somefolder/.gitkeep