Enterprise Server 3.23 is currently available as a release candidate.
Use the REST API to get .gitignore templates that can be used to ignore files and directories.
.gitignore