Hi my two cents, this is an online tool to create a .gitignore file where you can add technologies and the tool is going to create the file.
I tested it to create my ignore file for terraform, Python and ansible.
This is the link https://www.toptal.com/developers/gitignore