how use git ignorre code example Example 1: gitignore folder in .gitignore: folder/ Example 2: git remove file from gitignore git rm --cached <file>