We use GitHub as a company for repository storage and version control on all out protocols and automation scripts, with all of the being converted to or created new as solutions.
Looking at one or two older ones the .gitignore file is missing, so files from the obj folder and others are being pushed to GitHub.
Should DIS be auto creating and or updating the files to ignore in this file?
Do we just need to copy one from an existing solution to get it setup correctly?
DIS is not responsible for adding the .gitignore file as that is purely linked to git itself. This way users can change their .gitignore file to fit their needs without the risk of DIS overwritting it.
You can indeed copy one from an existing solution or manually add one.
Something that worked for me to clear the git indexing and only add back in what should be included on GitHub, after adding in the .gitignore file was
git rm -r --cached . && git add . && git commit -am "Remove ignored files" && git push
Which clears the entire cache, adds everything back into the cache that's not excluded by the .gitignore, creates a commit and pushes the changes.