git ignore from terminal code example Example: create gitignore # creates gitignore file $ touch .gitignore