how to ignore new file by creating .gitignore file from command code example
Example 1: create gitignore
# creates gitignore file
$ touch .gitignore
Example 2: git add gitignore
$ touch .gitignore
# creates gitignore file
$ touch .gitignore
$ touch .gitignore