You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 3.9KB

13 years ago
13 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # A collection of `.gitignore` templates
  2. This is GitHub’s collection of [`.gitignore`][man] file templates.
  3. We use this list to populate the `.gitignore` template choosers available
  4. in the GitHub.com interface when creating new repositories and files.
  5. For more information about how `.gitignore` files work, and how to use them,
  6. the following resources are a great place to start:
  7. - The [Ignoring Files chapter][chapter] of the [Pro Git][progit] book.
  8. - The [Ignoring Files article][help] on the GitHub Help site.
  9. - The [gitignore(5)][man] manual page.
  10. [man]: http://git-scm.com/docs/gitignore
  11. [help]: https://help.github.com/articles/ignoring-files
  12. [chapter]: http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository#Ignoring-Files
  13. [progit]: http://git-scm.com/book
  14. ## Folder structure
  15. The files in the root directory are for `.gitignore` templates that are
  16. project specific, such as language or framework specific templates.
  17. Global (operating system or editor specific) templates should go into the
  18. [`Global/`](./Global) directory.
  19. ## Contributing guidelines
  20. We’d love you to help us improve this project. To help us keep this collection
  21. high quality, we request that contributions adhere to the following guidelines.
  22. - **Provide a link to the application or project’s homepage**. Unless it’s
  23. extremely popular, there’s a chance the maintainers don’t know about or use
  24. the language, framework, editor, app, or project your change applies to.
  25. - **Provide links to documentation** supporting the change you’re making.
  26. Current, canonical documentation mentioning the files being ignored is best.
  27. If documentation isn’t available to support your change, do the best you can
  28. to explain what the files being ignored are for.
  29. - **Explain why you’re making a change**. Even if it seems self-evident, please
  30. take a sentence or two to tell us why your change or addition should happen.
  31. It’s especially helpful to articulate why this change applies to *everyone*
  32. who works with the applicable technology, rather than just you or your team.
  33. - **Please consider the scope of your change**. If your change specific to a
  34. certain language or framework, then make sure the change is made to the
  35. template for that language or framework, rather than to the template for an
  36. editor, tool, or operating system.
  37. - **Please only modify *one template* per pull request**. This helps keep pull
  38. requests and feedback focused on a specific project or technology.
  39. In general, the more you can do to help us understand the change you’re making,
  40. the more likely we’ll be to accept your contribution quickly.
  41. If a template is mostly a list of files installed by a particular version of
  42. some software (e.g. a PHP framework) then it's brittle and probably no more
  43. helpful than a simple `ls`. If it's not possible to curate a small set of
  44. useful rules, then the template might not be a good fit for this collection.
  45. Please also understand that we can’t list every tool that ever existed.
  46. Our aim is to curate a collection of the *most common and helpful* templates,
  47. not to make sure we cover every project possible. If we choose not to
  48. include your language, tool, or project, it’s not because it’s not awesome.
  49. ## Contributing workflow
  50. Here’s how we suggest you go about proposing a change to this project:
  51. 1. [Fork this project][fork] to your account.
  52. 2. [Create a branch][branch] for the change you intend to make.
  53. 3. Make your changes to your fork.
  54. 4. [Send a pull request][pr] from your fork’s branch to our `master` branch.
  55. Using the web-based interface to make changes is fine too, and will help you
  56. by automatically forking the project and prompting to send a pull request too.
  57. [fork]: https://help.github.com/articles/fork-a-repo/
  58. [branch]: https://help.github.com/articles/creating-and-deleting-branches-within-your-repository
  59. [pr]: https://help.github.com/articles/using-pull-requests/
  60. ## License
  61. [CC0-1.0](./LICENSE).