git ignore file by command code example Example 1: .gitignore node_modules .DS_Store .env Example 2: gitignore folder in .gitignore: folder/