GitHub uses special files such as README
and LICENSE
, special paths such as /.github
and /docs
, and special repositories like <org>/.github
or <user>/<user>
, to improve repository management and developer interactions. This page is a summary. We welcome pull requests.
- Introduction
- README
- CHANGELOG
- LICENSE
- SUPPORT
- SECURITY
- CODE_OF_CONDUCT
- CONTRIBUTING
- CONTRIBUTORS
- AUTHORS
- ACKNOWLEDGMENTS
- CODEOWNERS
- ISSUE_TEMPLATE
- PULL_REQUEST_TEMPLATE
- CITATION.cff
- FUNDING.yml
- dependabot.yml
- Workflows
- Jekyll
- Tracking
GitHub special files can typically be written with a variety of formats and file name extensions:
-
Freeform text, such as
README
orREADME.txt
. -
Markup formats, such as
README.markdown
orREADME.asciidoc
- see markups -
Custom syntaxes, such as the file
CODEOWNERS
.
GitHub special files are typically located at the repository top level or in special paths:
-
./
is the top level -
./.github
is a hidden dot file directory specifically for GitHub files -
./docs
is a typical documentation directory. -
Custom paths, such as the directory
ISSUE_TEMPLATE
.
The special files and paths are sometimes also known as community health files, recommended repository files, well-known configurations, etc.
For a general overview see building a strong community and GitHub's Open Source Guides.
-
File:
README
orREADME.txt
orREADME.md
etc. -
Directories:
./
./.github/
./docs/
-
Awesome: list: https://github.com/matiassingers/awesome-readme
A README file describes your project, what it does, why it is useful, etc.
This file is often the first item a visitor will see when visiting your repository, because GitHub automatically shows this file to repository visitors. README files in subdirectories will display when visitors view that subdirectory in the GitHub website.
-
Repository:
<username>/<username>
A README file in the root of a repository that has the same name as your username, e.g. mojombo/mojombo, will be shown at the top of your profile page.
-
Repository:
<org>/.github
or<org>/.github-private
A README file in the root of an organization repository called .github
, .e.g. github/.github, will be shown to visitors at the top of the organization profile page. An equivalent file in the root of an organization repository called .github-private
will be shown to logged in organization members.
-
File:
CHANGELOG
orCHANGELOG.txt
orCHANGELOG.md
etc. -
Directories:
./
./.github/
./docs/
A CHANGELOG file describes the changes in the project, such as version changes, feature additions, and bug fixes.
-
File:
LICENSE
orLICENSE.txt
orLICENSE.md
etc. -
Help: https://help.github.com/articles/adding-a-license-to-a-repository/
-
Directories:
./
./.github/
./docs/
This file explains the repository's legal license, such as any legal rights, any copyright restrictions, etc. If you include a detectable license in your repository, people who visit your repository will see it at the top of the repository page.
If you want help to choose a license, then try https://choosealicense.com
If your project is significant, or contains other peoples' work or intellectual property, then you may want to consult with a lawyer who can help you with your specific goals and needs. If you don't provide a license, then in some locations a default copyright law will apply.
-
File:
SUPPORT
orSUPPORT.txt
orSUPPORT.md
etc. -
Directories:
./
./.github/
./docs/
This file explains how a reader can get help with the repository and project. GitHub links this file on the page "New Issue". Unlike the "CONTRIBUTING" file, GitHub does not link this file on the page "New Pull Request".
Default SUPPORT
files that apply across all repositories can be placed in an organization's .github
repository, see https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file.
-
File:
SECURITY
orSECURITY.txt
orSECURITY.md
etc. -
Help: https://help.github.com/en/articles/adding-a-security-policy-to-your-repository
-
Directories:
./
./.github/
./docs/
This file explains the project's security policies, such as a list of versions that are currently being maintained with security updates. This file also provides instructions on how users can submit a report of a vulnerability.
GitHub links to this file, under the "Policy" link on the "Security" tab of your repository.
Default SECURITY
files that apply across all repositories can be placed in an organization's .github
repository, see https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file.
-
File:
CODE_OF_CONDUCT
orCODE_OF_CONDUCT.txt
orCODE_OF_CONDUCT.md
etc. -
Help: https://help.github.com/articles/adding-a-code-of-conduct-to-your-project/
-
Directories:
./
./.github/
./docs/
-
Awesome: list: https://i-sight.com/resources/18-of-the-best-code-of-conduct-examples/
This file explains how to engage in a community, and how to foster an inclusive environment that respects all people, and how to address any problems among members of your project's community.
Default CODE_OF_CONDUCT
files that apply across all repositories can be placed in an organization's .github
repository, see https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file.
-
File:
CONTRIBUTING
orCONTRIBUTING.txt
orCONTRIBUTING.md
etc. -
Help: https://help.github.com/articles/setting-guidelines-for-repository-contributors/
-
Directories:
./
./.github/
./docs/
-
Awesome: list: https://github.com/mntnr/awesome-contributing
This file explains how people can contribute to the project. This file can help verify people are submitting well-formed pull requests and opening useful issues.
GitHub links to this file, on the page "New Issue" and the page "New Pull Request".
Default CONTRIBUTING
files that apply across all repositories can be placed in an organization's .github
repository, see https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file.
-
File:
CONTRIBUTORS
orCONTRIBUTORS.txt
orCONTRIBUTORS.md
etc. -
Directories:
./
./.github/
./docs/
This file explains who has contributed to the project. When we use a CONTRIBUTORS
file in our projects, we ask people how they want to be listed, such as by their name, handle, email address, website link, etc.
Compare this file to the file AUTHORS
.
-
File:
AUTHORS
orAUTHORS.txt
orAUTHORS.md
etc. -
Directories:
./
./.github/
./docs/
This file lists people who are significant authors of the project, such as the people who are legally related to the work. The GNU project states "Only the contributions that are legally significant for copyright purposes (see Legally Significant) need to be listed. Small contributions, bug reports, ideas, etc., can be omitted."
Compare this file to the file CONTRIBUTORS
.
-
File:
ACKNOWLEDGMENTS
orACKNOWLEDGMENTS.txt
orACKNOWLEDGMENTS.md
etc. -
Directories:
./
./.github/
./docs/
This file explains relevant related work, such as other projects that are dependencies, or libraries, or modules, or have their own copyrights or licenses that you want to include in your project.
-
File:
CODEOWNERS
-
Directories:
./
./.github/
./docs/
This file defines individuals or teams that are responsible for code in a repository.
Code owners are automatically requested for review when someone opens a pull request that modifies code that they own. When someone with admin or owner permissions has enabled required reviews, they also can optionally require approval from a code owner before the author can merge a pull request in the repository.
-
File:
ISSUE_TEMPLATE
-
Help: https://help.github.com/articles/creating-an-issue-template-for-your-repository/
-
Directories:
./
./.github/
./docs/
or./ISSUE_TEMPLATE/
-
Awesome: list: https://github.com/devspace/awesome-github-templates
When you add an issue template to your repository, project contributors will automatically see the template's contents in the issue body. Templates customize and standardize the information you'd like included when contributors open issues.
See https://blog.github.com/2018-01-25-multiple-issue-and-pull-request-templates/
To add multiple issue templates to a repository create an ISSUE_TEMPLATE/
directory in your project root. Within that ISSUE_TEMPLATE/
directory you can create as many issue templates as you need, for example ISSUE_TEMPLATE/bugs.md
.
Default ISSUE_TEMPLATE
files that apply across all repositories can be placed in an organization's .github
repository, see https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file.
-
File:
PULL_REQUEST_TEMPLATE
or can be a subdirectory -
Help: https://help.github.com/articles/creating-a-pull-request-template-for-your-repository/
-
Directories:
./
./.github/
./docs/
-
Awesome: list: https://github.com/devspace/awesome-github-templates
This file triggers project contributors to automatically see the template's contents in a new pull request body. The template can customize and standardize the information you'd like included when contributors create pull requests.
See https://blog.github.com/2018-01-25-multiple-issue-and-pull-request-templates/
You can create a PULL_REQUEST_TEMPLATE/
subdirectory in any of the supported folders to contain multiple pull request templates. Use the template query parameter to specify the template that will automatically fill the pull request body. For more information, see "About automation for issues and pull requests with query parameters."
-
File:
CITATION.cff
orCITATION
orCITATIONS
orCITATION.bib
OrCITATIONS.bib
orCITATION.md
orCITATIONS.md
-
Directories:
./
or special caseinst/CITATION
for R packages.
This file explains how you would like people to cite your work. The citation file format is plain text with human-readable and machine-readable citation information.
When you add this file to the default branch root directory of your repository, then GitHub automatically links to it from the repository landing page.
-
File:
.github/FUNDING.yml
You can configure your sponsor button by adding a file in your repository on the default branch. You can configure the button to include sponsored developers in GitHub Sponsors, external funding platforms, or a custom funding URL.
Default FUNDING.yml
files that apply across all repositories can be placed in an organization's .github
repository, see https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file.
-
File:
.github/dependabot.yml
Dependabot is a GitHub tool that provides automated dependency updates. To enable updates, create a Dependabot configuration file and add it to a repository. The file describes the dependencies to update, where dependency manifests are located, etc. If Dependabot discovers that an update is available, then Dependabot sends you a pull request to update your dependency.
-
Directory:
.github/workflows
-
Help: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
A workflow is a configurable automated process made up of one or more jobs. You must create a YAML file to define your workflow configuration. Workflow files use YAML syntax, and must have file extension .yml
or .yaml
.
-
File:
CNAME
When using GitHub Pages with a custom domain (https://www.example.org rather than https://example.github.io), the CNAME
file specifies the domains that should be directed to the generated site.
Files and directories: see below
GitHub uses Jekyll to compile static sites for hosting through its GitHub Pages service. Jekyll configuration is read directly from the repository.
The following files and directories are used by Jekyll:
_config.yml
_drafts/
_includes/
_layouts/
_posts/
_data/
_sass/
_site/
.jekyll-metadata
index
All other files in the repository are included in the generated site without additional processing.
- Package: github-special-files-and-paths
- Version: 5.1.0
- Created: 2017-08-22T00:00:00Z
- Updated: 2023-08-02T13:01:05Z
- License: GPL-2.0-or-later or contact us for custom license
- Contact: Joel Parker Henderson (joel@sixarm.com)