Today I Learned

tags


2023/03/19

That you can use a .gitattributes file to prevent files from appearing in GitHub diffs like so:

generated/**/* linguist-generated=true

See https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github


2024/03/18

Alerts are an extension of Markdown used to emphasize critical information. On GitHub, they are displayed with distinctive colors and icons to indicate the importance of the content.

An example of all five types:

> [!NOTE]  
> Highlights information that users should take into account, even when skimming.

> [!TIP]
> Optional information to help a user be more successful.

[!IMPORTANT]
Crucial information necessary for users to succeed.

[!WARNING]
Critical content demanding immediate user attention due to potential risks.

[!CAUTION] Negative potential consequences of an action.

See https://github.com/orgs/community/discussions/16925


2026/01/28

That GitHub provides RSS feeds:

GitHub does offer built-in RSS feeds for certain activities, but they have key limitations:

https://www.codestudy.net/blog/setting-up-a-github-commit-rss-feed/#understanding-githubs-native-rss-limitations