# Gitea customization folder (gitignore, etc.)

**URL:** <https://forum.yunohost.org/t/gitea-customization-folder-gitignore-etc/7094>\
**Category:** Support apps\
**Tags:** english\
**Created:** [February 12, 2019, 8:14pm UTC](https://forum.yunohost.org/t/gitea-customization-folder-gitignore-etc/7094 "2019-02-12T20:14:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toshiwoz](https://forum.yunohost.org/user_avatar/forum.yunohost.org/toshiwoz/32/1646_2.png) [@Toshiwoz](https://forum.yunohost.org/u/Toshiwoz)\
**Post date:** [February 12, 2019, 8:14pm UTC](https://forum.yunohost.org/t/gitea-customization-folder-gitignore-etc/7094/1 "2019-02-12T20:14:53Z")

</div>

I was trying to find out where and how to create a custom .gitignore template for my repos.  
Looking around I found out it is here:

`/opt/gitea/custom/options/gitignore`

I had to manually create the folders `options/gitignore`.  
Then within it place as many files you want, no extension, just the name of the template, for example:  
`Godot`  
and inside:

```
# Godot-specific ignores
.import/
export.cfg
export_presets.cfg

# Mono-specific ignores
.mono/

```

I hope this will be useful to someone else too.

---

<div class="post-metadata">

**Author:** ![arthurlutz](https://forum.yunohost.org/user_avatar/forum.yunohost.org/arthurlutz/32/586_2.png) [@arthurlutz](https://forum.yunohost.org/u/arthurlutz)\
**Post date:** [February 13, 2019, 11:04am UTC](https://forum.yunohost.org/t/gitea-customization-folder-gitignore-etc/7094/2 "2019-02-13T11:04:45Z")

</div>

Hi @Toshiwoz

Thanks for the tip. Is this specific to yunohost or to gitea ?

---

<div class="post-metadata">

**Author:** ![Toshiwoz](https://forum.yunohost.org/user_avatar/forum.yunohost.org/toshiwoz/32/1646_2.png) [@Toshiwoz](https://forum.yunohost.org/u/Toshiwoz)\
**Post date:** [February 13, 2019, 2:15pm UTC](https://forum.yunohost.org/t/gitea-customization-folder-gitignore-etc/7094/3 "2019-02-13T14:15:30Z")

</div>

This is specific to Yunohost’s Gitea installation (at least the `/opt/gitea/` part of the folder location).  
If you install Gitea on a regular server, it will use different folders AFAIK.

Here is the general information:  
[https://docs.gitea.io/en-us/customizing-gitea/](https://docs.gitea.io/en-us/customizing-gitea/)

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [January 18, 2023, 8:22pm UTC](https://forum.yunohost.org/t/gitea-customization-folder-gitignore-etc/7094/4 "2023-01-18T20:22:31Z")

</div>

Closed on January 18, 2023, 8:22pm UTC


