Notes

What to .gitignore

Edit on GitHub

Git & Github
  • Cache folders (.DS_Store, sass_cache)
  • Modules/Packages folders generated by dependency managers (node_modules, vendor)
  • Any folders that can be easily regenrated on the other end by a config file
  • Configuration files. Anything that contains private usernames and passwords

Following are common files added to my .gitignore

 1# Mac OS X
 2.DS_Store
 3*/.DS_Store
 4
 5# Opencart
 6image/cache
 7system/cache # OC 1x
 8system/storage/cache # OC 2x
 9vqmod/vqcache
10
11# Webhost
12cgi-bin
13
14# Dependency and Package folders
15node_modules
16vendor
17
18# Sass
19sass_cache