The file .gitignore contains a list of patterns to be matched touch .gitignore echo "*.log" > .gitignore