Git Product home page Git Product logo

gitignores's Introduction

Collection of .gitignore files

This is a collection of .gitignore files I find useful for assorted projects. There are other larger, more comprehensive collections of .gitignore files, but these are the .gitignore configurations I use and find useful.

I have not made any effort to modularize them.

composer-applications.gitignore

A .gitignore file for PHP applications using Composer. This tracks the composer.lock file as recommended in Composer's documentation.

composer-libraries.gitignore

.gitignore for PHP library projects using Composer. This does not track the composer.lock file; Composer's documentation does not make a recommendation one way or the other here, but library projects should try to keep their requirements minimal IMO.

wordpress.gitignore

This is the .gitignore file I use for WordPress repositories. It has worked well so far for sites that have a custom theme but manage plugins through WordPress's usual built-in update mechanisms.

This is designed to not track WordPress components that update themselves:

  • You allow WordPress to self-update, or you update it from a third-party system;
  • You then make a code update in your WordPress repository and push the update;
  • The push does not break the updates installed in the site.

Some WordPress shops try to track entire WordPress sites in Git. This does not work well. WordPress works better when treated as a "platform" for smaller, independent software projects. Each individual project (plugin, theme, or other) should be tracked in its own repository, but not tracked in the WordPress sites using them.

Plugins

All plugins are ignored.

Themes

Only the base WordPress themes are ignored. Custom themes with a built-in update mechanism may end up tracked here, which could cause complications.

Cruft, WPEngine, etc.

Rules are included to ignore cruft added by operating systems, IDEs, utilities, and loggers, as well as filetypes that WPEngine doesn't support when pushing to their remotes.

gitignores's People

Contributors

robsheldon avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.