If you build a Git repository, .gitignore is an option you need to consider.
If you want to apply the template, it is recommended to use the template provided in the following warehouse address:
Enter the warehouse address: https://github.com/github/gitignore
A variety of templates are covered relatively comprehensively and can be used in combination according to your specific needs.