add gitignore to repository code example Example: create gitignore # creates gitignore file $ touch .gitignore