how to creat gitignore code example Example 1: create gitignore Click to copy# creates gitignore file $ touch .gitignore Example 2: git add gitignore Click to copy$ touch .gitignore