1
0
mirror of https://github.com/github/gitignore synced 2024-11-29 23:24:21 +01:00
Go to file
2020-09-25 12:18:50 -04:00
.github Trim trailing whitespace 2018-06-05 11:09:20 +07:00
community Ignore AWS Serverless Application Model build folder (#3357) 2020-04-04 13:32:58 -03:00
Global Update stale heading anchor (#3445) 2020-07-03 17:17:35 -03:00
.travis.yml .travis.yml: Trim trailing whitespace and indent (#3118) 2019-07-21 10:48:12 -03:00
Actionscript.gitignore Fix comments on same line causing ignore to break 2017-08-10 23:27:44 -04:00
Ada.gitignore ensure single trailing newline 2014-03-27 17:04:56 +01:00
Agda.gitignore Add MAlonzo directory. (#2978) 2019-03-08 08:47:43 -04:00
Android.gitignore ignore HPROF files (#3456) 2020-07-04 13:35:59 -03:00
AppceleratorTitanium.gitignore Added Appcelerator Titanium .gitignore file. 2012-08-22 18:06:15 -07:00
AppEngine.gitignore Added template for Google App Engine 2015-01-15 19:05:19 -05:00
ArchLinuxPackages.gitignore Add .jar, .exe and .msi 2015-05-28 12:37:43 +02:00
Autotools.gitignore Update Autotools.gitignore. (#3337) 2020-03-12 08:14:59 -03:00
C.gitignore Update C.gitignore 2016-10-31 18:27:09 -04:00
C++.gitignore added prerequisites for C and C++ 2016-06-29 13:33:32 -03:00
CakePHP.gitignore Update CakePHP.gitignore 2015-11-20 18:14:33 +01:00
CFWheels.gitignore add cfwheels gitignore 2011-02-21 18:02:55 -08:00
ChefCookbook.gitignore Remove lockfiles from Chef template 2014-03-07 00:24:00 +11:00
Clojure.gitignore Add .gitignore for Leiningen projects 2011-04-08 21:02:05 +03:00
CMake.gitignore Ignore CMake FetchContent directory 2019-01-23 20:11:58 +00:00
CodeIgniter.gitignore Merge branch 'master' into codeigniter3update 2017-02-02 09:36:10 -02:00
CommonLisp.gitignore Update CommonLisp.gitignore 2016-12-27 12:12:30 -05:00
Composer.gitignore Fix link to go to current anchor 2017-10-27 17:55:29 -05:00
Concrete5.gitignore Update concrete5 gitignore (#3176) 2020-02-09 20:09:03 -04:00
CONTRIBUTING.md Trim trailing whitespace 2018-06-05 11:09:20 +07:00
Coq.gitignore Add generated timing files to Coq.gitignore (#3367) 2020-04-07 09:53:51 -03:00
CraftCMS.gitignore Craft: update to follow official recs; add 'not necessary in v3' note 2018-06-21 22:25:43 -04:00
CUDA.gitignore Add CUDA.gitignore 2015-03-14 17:29:54 -07:00
D.gitignore Update D.gitignore 2016-06-06 22:23:51 +03:00
Dart.gitignore Dart: Ignore .flutter-plugins (#3398) 2020-05-06 10:30:31 -03:00
Delphi.gitignore Update Delphi.gitignore 2018-10-12 10:12:55 -03:00
DM.gitignore ensure single trailing newline 2014-03-27 17:04:56 +01:00
Drupal.gitignore Update Drupal.gitignore (#3329) 2020-03-11 09:44:55 -03:00
Eagle.gitignore Eagle: Remove duplicate entry 2018-06-18 12:35:46 +07:00
Elisp.gitignore add final newline 2016-10-27 03:19:31 +11:00
Elixir.gitignore ignore files generated by ElixirLS 2018-11-06 11:32:22 +11:00
Elm.gitignore Ignore elm-stuff project-wide 2016-07-28 10:18:33 +02:00
EPiServer.gitignore ensure single trailing newline 2014-03-27 17:04:56 +01:00
Erlang.gitignore Add rebar3 tool files and directories (#3178) 2019-09-16 11:12:42 -03:00
ExpressionEngine.gitignore Merge pull request #488 from nanadevelopment/eeConfigAdd 2013-11-11 05:37:55 -08:00
ExtJs.gitignore Adds some files 2017-09-07 18:55:03 +02:00
Fancy.gitignore ensure single trailing newline 2014-03-27 17:04:56 +01:00
Finale.gitignore ensure single trailing newline 2013-10-06 14:40:01 +02:00
ForceDotCom.gitignore ensure single trailing newline 2013-10-06 14:40:01 +02:00
Fortran.gitignore Link a new fortran template to existing c++ one 2014-07-16 23:09:37 +10:00
FuelPHP.gitignore update FuelPHP.gitignore 2014-12-08 21:05:58 +09:00
Gcov.gitignore Capitalise initial letter in template filenames for consistency/sorting 2015-01-07 15:16:27 +11:00
GitBook.gitignore Correct URL for NPM URL reference 2015-02-05 10:21:40 -06:00
Go.gitignore ignore vendor directory (#3033) 2019-05-05 10:37:09 -03:00
Godot.gitignore Remove pointless blank line from the beginning of the Godot file (#3466) 2020-07-12 12:04:53 -03:00
Gradle.gitignore Ignore Gradle subproject build dir (#3370) 2020-04-14 16:14:56 -03:00
Grails.gitignore Adding additional comments 2014-09-08 00:52:39 -04:00
GWT.gitignore GWT: Remove duplicate entry 2018-06-18 12:38:20 +07:00
Haskell.gitignore Add *.hie to Haskell.gitignore (#3120) 2019-07-21 10:47:04 -03:00
Idris.gitignore Add an Idris gitignore 2014-02-27 21:51:51 -05:00
IGORPro.gitignore Create IGORPro.gitignore 2014-12-03 11:33:11 +01:00
Java.gitignore Added NiFi .nar files 2018-04-12 09:44:21 +01:00
JBoss.gitignore correct capitalization problems and add Octave which link to MATLAB 2018-11-26 22:02:40 +11:00
Jekyll.gitignore Update Jekyll.gitignore (#2540) 2017-12-06 07:40:27 +11:00
JENKINS_HOME.gitignore Improved JENKINS_HOME example (#3332) 2020-03-11 10:03:44 -03:00
Joomla.gitignore Updating Joomla.gitignore to Joomla! 3.9.8 (#3090) 2019-06-23 10:13:21 -03:00
Julia.gitignore Add more standard ignored files for Julia (#2992) 2019-03-14 13:41:28 -03:00
KiCad.gitignore KiCad: add *.kicad_sch-bak and *.kicad_prl (#3427) 2020-07-12 12:07:13 -03:00
Kohana.gitignore ensure single trailing newline 2013-10-06 14:40:01 +02:00
Kotlin.gitignore Symlink Kotlin.gitignore to Java.gitignore 2016-02-25 22:49:56 +00:00
LabVIEW.gitignore Ignore the .cache folder for LabVIEW projects 2018-05-09 13:28:57 -05:00
Laravel.gitignore Update Laravel.gitignore (#3098) 2019-06-27 12:49:08 -03:00
Leiningen.gitignore Update .gitignore with .cpcache 2018-03-18 10:40:50 +05:30
LemonStand.gitignore ensure single trailing newline 2013-10-06 14:40:01 +02:00
LICENSE Use the exact CC-0 license text 2016-10-28 11:18:45 -04:00
Lilypond.gitignore Add ignore file for lilypond. 2011-02-21 17:57:27 -08:00
Lithium.gitignore The Lithium app should be the root repo folder 2012-09-01 19:10:36 -03:00
Lua.gitignore Added a .gitignore template for Lua based projects. 2015-01-03 17:12:56 +00:00
Magento.gitignore Remove patch files from repo 2018-09-25 16:26:00 +02:00
Maven.gitignore Reference why to exclude binary jar, fixes #111 (#3154) 2019-08-20 08:47:38 -03:00
Mercury.gitignore Mercury.gitignore: Add Mercury.modules 2015-01-09 13:06:58 +08:00
MetaProgrammingSystem.gitignore Grammar/formatting tweak to comments 2014-06-12 11:42:57 +10:00
Nanoc.gitignore Nanoc: Ignore tmp/nanoc/, not tmp/ 2017-08-29 23:23:24 +02:00
Nim.gitignore Updated Nim.gitignore (#3172) 2019-09-10 11:58:47 -03:00
Node.gitignore Add .yarn/install-state.gz to Node.gitignore (#3407) 2020-05-14 08:49:06 -03:00
Objective-C.gitignore Improving the documentation of Objective-C and Swift files (#3133) 2019-08-07 09:23:05 -03:00
OCaml.gitignore Update OCaml.gitignore (#3010) 2019-03-21 14:10:28 -03:00
Opa.gitignore Added Opa.gitignore 2012-03-03 02:08:17 +01:00
OpenCart.gitignore excluding vqmod cache files and logs 2016-10-15 11:44:22 +00:00
OracleForms.gitignore added gitignore for Oracle Forms development 2012-03-19 16:46:57 -04:00
Packer.gitignore Add crash.log to Packer.gitignore (#3230) 2019-11-08 17:00:59 -04:00
Perl.gitignore spelling: utils 2017-11-08 01:20:10 +00:00
Phalcon.gitignore Remove trailing asterisks in Phalcon rules 2014-03-21 12:57:41 +11:00
PlayFramework.gitignore Added /project/project to PlayFramework.gitignore 2017-02-22 08:43:06 -08:00
Plone.gitignore Covered by global vim template 2013-11-12 15:09:20 +07:00
Prestashop.gitignore Update for Prestashop 1.7 (#3261) 2020-03-11 09:10:57 -03:00
Processing.gitignore Ignore transpiled .java and .class files (#3016) 2019-03-27 08:31:02 -03:00
PureScript.gitignore Update PureScript adding .spago (#3278) 2020-01-21 08:57:39 -04:00
Python.gitignore Remove pip-wheel-metadata/ from Python.gitignore (#3364) 2020-04-11 18:21:33 -03:00
Qooxdoo.gitignore Add gitignore for qooxdoo apps 2011-02-21 18:08:18 -08:00
Qt.gitignore Extend Qt.gitignore with qmlcache qrc files (#3322) 2020-03-12 15:47:06 -03:00
R.gitignore ignore *~ files in the po directory (#3453) 2020-07-03 17:19:48 -03:00
Rails.gitignore Add /public/uploads for file upload gem Shrine (#3333) 2020-03-11 09:54:02 -03:00
Raku.gitignore Changes the name of Perl 6 to Raku (#3312) 2020-02-19 14:10:09 -04:00
README.md update README (#3248) 2020-03-12 08:23:31 -03:00
RhodesRhomobile.gitignore Add Rhodes mobile application framework gitignore 2010-11-10 03:44:16 +08:00
ROS.gitignore Added ignore for files created by catkin_make_isolated 2018-01-26 11:32:59 +01:00
Ruby.gitignore Ruby: ignore RuboCop remote inherited config files (#3197) 2019-10-04 09:19:47 -03:00
Rust.gitignore Fixing target and adding debug to Rust gitignore (#3436) 2020-07-03 15:07:44 -03:00
Sass.gitignore Add all sourcemap file formats 2018-05-24 00:12:37 -05:00
Scala.gitignore [Scala] remove external tools excludes. 2017-02-17 01:01:42 +05:00
Scheme.gitignore Add Scheme.gitignore 2015-08-22 20:56:50 +09:00
SCons.gitignore Update SCons.gitignore (#3001) 2019-03-18 09:14:04 -03:00
Scrivener.gitignore Added new checksums and allows for relative directories (#3128) 2019-09-20 12:59:19 -03:00
Sdcc.gitignore ensure single trailing newline 2013-10-06 14:40:01 +02:00
SeamGen.gitignore Update SeamGen.gitignore 2012-07-31 11:57:21 +08:00
SharePointSPFX.gitignore Adding a common gitignore file for SPFx web parts. 2020-09-25 12:18:50 -04:00
SketchUp.gitignore Add gitignore for sketchup backup files. 2012-01-18 17:33:11 -06:00
Smalltalk.gitignore Merge pull request #2027 from rejurime/dolphin-smalltalk 2018-11-23 14:54:50 -04:00
Stella.gitignore Capitalise initial letter in template filenames for consistency/sorting 2015-01-07 15:16:27 +11:00
SugarCRM.gitignore ensure the following ! rules are included 2017-05-15 19:31:13 +10:00
Swift.gitignore Improving the documentation of Objective-C and Swift files (#3133) 2019-08-07 09:23:05 -03:00
Symfony.gitignore Ignore logs for Symfony4 2018-08-08 22:39:04 +02:00
SymphonyCMS.gitignore added symphony and workspace/uploads dir 2012-04-11 11:39:01 +03:00
Terraform.gitignore Exclude *.tfvars files (#3452) 2020-07-06 21:36:25 -03:00
TeX.gitignore ignore .xwm generated by xwatermark package in TeX (#3412) 2020-05-19 09:19:39 -03:00
Textpattern.gitignore Added Textpattern gitignore 2012-01-17 11:04:16 +00:00
TurboGears2.gitignore Add for TurboGears2 (based off of Python template) 2010-11-09 15:46:02 +08:00
Typo3.gitignore Merge pull request #1646 from josefglatz/TYPO3-improvements 2018-06-17 16:06:06 -03:00
Umbraco.gitignore Add ignore to umbraco folder (#3307) 2020-02-21 06:41:41 -04:00
Unity.gitignore Add *.aab (#3414) 2020-05-19 10:48:08 -03:00
UnrealEngine.gitignore Revert "add the *.VC.db to unreal engine ignore" 2018-06-18 12:32:46 +07:00
VisualStudio.gitignore Fix false positives on Coverage*.cs files (#3454) 2020-07-03 17:15:33 -03:00
VVVV.gitignore ensure single trailing newline 2014-03-27 17:04:56 +01:00
Waf.gitignore Waf: Be more explicit in patterns 2016-03-24 13:26:58 -04:00
WordPress.gitignore Updated ignored list (#2972) 2019-05-12 10:05:22 -03:00
Xojo.gitignore Ignores *.xojo_uistate 2014-09-14 11:54:56 -04:00
Yeoman.gitignore Create Yeoman.gitignore 2013-10-21 16:20:37 +11:00
Yii.gitignore Merge remote-tracking branch 'origin/master' into pr/506 2013-11-11 09:51:38 -08:00
ZendFramework.gitignore Remove double-spaced lines 2017-09-12 01:29:04 -04:00
Zephir.gitignore Added comments for Zephir 2014-06-21 20:02:16 +04:00

A collection of .gitignore templates

This is GitHubs collection of .gitignore file templates. We use this list to populate the .gitignore template choosers available in the GitHub.com interface when creating new repositories and files.

For more information about how .gitignore files work, and how to use them, the following resources are a great place to start:

Folder structure

We support a collection of templates, organized in this way:

  • the root folder contains templates in common use, to help people get started with popular programming languages and technologies. These define a meaningful set of rules to help get started, and ensure you are not committing unimportant files into your repository
  • Global contains templates for various editors, tools and operating systems that can be used in different situations. It is recommended that you either add these to your global template or merge these rules into your project-specific templates if you want to use them permanently.
  • community contains specialized templates for other popular languages, tools and project, which don't currently belong in the mainstream templates. These should be added to your project-specific templates when you decide to adopt the framework or tool.

What makes a good template?

A template should contain a set of rules to help Git repositories work with a specific programming language, framework, tool or environment.

If it's not possible to curate a small set of useful rules for this situation, then the template is not a good fit for this collection.

If a template is mostly a list of files installed by a particular version of some software (e.g. a PHP framework), it could live under the community directory. See versioned templates for more details.

If you have a small set of rules, or want to support a technology that is not widely in use, and still believe this will be helpful to others, please read the section about specialized templates for more details.

Include details when opening pull request if the template is important and visible. We may not accept it immediately, but we can promote it to the root at a later date based on interest.

Please also understand that we cant list every tool that ever existed. Our aim is to curate a collection of the most common and helpful templates, not to make sure we cover every project possible. If we choose not to include your language, tool, or project, its not because its not awesome.

Contributing guidelines

Wed love for you to help us improve this project. To help us keep this collection high quality, we request that contributions adhere to the following guidelines.

  • Provide a link to the application or projects homepage. Unless its extremely popular, theres a chance the maintainers dont know about or use the language, framework, editor, app, or project your change applies to.

  • Provide links to documentation supporting the change youre making. Current, canonical documentation mentioning the files being ignored is best. If documentation isnt available to support your change, do the best you can to explain what the files being ignored are for.

  • Explain why youre making a change. Even if it seems self-evident, please take a sentence or two to tell us why your change or addition should happen. Its especially helpful to articulate why this change applies to everyone who works with the applicable technology, rather than just you or your team.

  • Please consider the scope of your change. If your change is specific to a certain language or framework, then make sure the change is made to the template for that language or framework, rather than to the template for an editor, tool, or operating system.

  • Please only modify one template per pull request. This helps keep pull requests and feedback focused on a specific project or technology.

In general, the more you can do to help us understand the change youre making, the more likely well be to accept your contribution quickly.

Versioned templates

Some templates can change greatly between versions, and if you wish to contribute to this repository we need to follow this specific flow:

  • the template at the root should be the current supported version
  • the template at the root should not have a version in the filename (i.e. "evergreen")
  • previous versions of templates should live under community/
  • previous versions of the template should embed the version in the filename, for readability

This helps ensure users get the latest version (because they'll use whatever is at the root) but helps maintainers support older versions still in the wild.

Specialized templates

If you have a template that you would like to contribute, but it isn't quite mainstream, please consider adding this to the community directory under a folder that best suits where it belongs.

The rules in your specialized template should be specific to the framework or tool, and any additional templates should be mentioned in a comment in the header of the template.

For example, this template might live at community/DotNet/InforCRM.gitignore:

# gitignore template for InforCRM (formerly SalesLogix)
# website: https://www.infor.com/product-summary/cx/infor-crm/
#
# Recommended: VisualStudio.gitignore

# Ignore model files that are auto-generated
ModelIndex.xml
ExportedFiles.xml

# Ignore deployment files
[Mm]odel/[Dd]eployment

# Force include portal SupportFiles
!Model/Portal/*/SupportFiles/[Bb]in/
!Model/Portal/PortalTemplates/*/SupportFiles/[Bb]in

Contributing workflow

Heres how we suggest you go about proposing a change to this project:

  1. Fork this project to your account.
  2. Create a branch for the change you intend to make.
  3. Make your changes to your fork.
  4. Send a pull request from your forks branch to our master branch.

Using the web-based interface to make changes is fine too, and will help you by automatically forking the project and prompting to send a pull request too.

License

CC0-1.0.