how to make git tot ingone a full folder code example Example 1: gitignore folder in .gitignore: folder/ Example 2: git exclude folder directory_to_exclude/