Is there a way to generate a .gitignore file using one of the listed presets found here https://github.com/github/gitignore using Git? The --gitignore
flag for the gh create repo
command using the GitHub CLI is the closest thing to it I’ve found, but AFAIK it does not overwrite an existing .gitignore file.
Is there built-in capability for something like this? How would I go about doing it?
1