Git: Ignoring Patterns Cheat Sheet

Preventing unintentional staging or commiting of files

logs/
*.notes
pattern*/

Save a file with desired patterns as .gitignore with either direct string
matches or wildcard globs.

git config --global core.excludesfile [file]

system wide ignore patern for all local repositories

Leave a Reply

Your email address will not be published. Required fields are marked *