From 5bf7b8553a88147bd64c39461516e1dbef92eade Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Mon, 14 Mar 2022 02:25:03 +0000 Subject: [PATCH] Add example screenshot and how-to --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b9f3f64..c4db078 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # gitea-gitignores-optional -Optional set of `.gitignore` files primarily to extend the default set available in Gitea instances \ No newline at end of file +Optional set of `.gitignore` files primarily to extend the default set available in Gitea instances + +From [the Gitea docs "Customizing Gitea" page, section "gitignores"](https://docs.gitea.io/en-us/customizing-gitea/#gitignores), put as many `.gitignore` files as you want into your Gitea instance's `${GITEA_CUSTOM}/options/gitignore` location, the value of `${GITEA_CUSTOM}` is available from `gitea help` and defaults to `/data/gitea`. + +Presets are then available in Gitea's *New Repository* dialog: + +![Gitea New Repository dialog with custom gitignore preset](https://i.imgur.com/xsFxKgX.png "Gitea New Repository dialog with custom gitignore preset") + +Gitignore presets show up in Gitea's *New Repository* dialog with the exact name given to files in `${GITEA_CUSTOM}/options/gitignore`. The example preset `JetBrainsWorkspace` shown on the screenshot comes from a file `${GITEA_CUSTOM}/options/gitignore/JetBrainsWorkspace`. \ No newline at end of file