# Guidelines for GitHub Fortran repos

**URL:** <https://fortran-lang.discourse.group/t/guidelines-for-github-fortran-repos/8440>\
**Category:** Uncategorized\
**Created:** [August 6, 2024, 1:00pm UTC](https://fortran-lang.discourse.group/t/guidelines-for-github-fortran-repos/8440 "2024-08-06T13:00:01Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![davidpfister](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/davidpfister/32/3949_2.png) [@davidpfister](https://fortran-lang.discourse.group/u/davidpfister)\
**Post date:** [September 30, 2024, 10:12am UTC](https://fortran-lang.discourse.group/t/guidelines-for-github-fortran-repos/8440/14 "2024-09-30T10:12:41Z")

</div>

Just a little tip for the GitHub users. I just faced a strange situation where my repos where flagged as mainly Javascript or Pascal repos.

Because some of my repos contain:

- the documentation site (lots of .js and .html files)
- or include files (I use .inc which is recognized as Pascal)

the ‘Languages’ statistics on GitHub are often wrong.  
If you end up in the same situation you can add a `.gitattributes` file to the root of your Github repository with the following:

```auto
*.inc linguist-language=Fortran
docs/** linguist-documentation

```

The first line maps `.inc` to Fortran code, and the second excludes the folder `docs` from linguist search.

---

_[View the full topic](https://fortran-lang.discourse.group/t/guidelines-for-github-fortran-repos/8440)._
