Puh, that's complicated
Search some well maintained project on GitHub, choose a simple one with a similar programming-language you want to use and take it as an example.
.gitignore