There’s a standard gitignore file in the starterkit. You can find it here: https://github.com/getkirby/starterkit/blob/master/.gitignore
You should also consider hiding your license key from the config file (see for example License in config.php and deployment) as well as any other critical information for APIs or authentication anywhere on your site.