Run your own branded instance of the gitignore.io service locally using Docker Compose.
Call the HTTP API from a script or IDE plugin to automatically generate a .gitignore when starting a new project.
Generate a .gitignore file for any OS, language, and editor combination through the hosted web interface.
Requires Docker installed. Development server starts at localhost:8080 after a single docker-compose up command.
This is the source code for gitignore.io, a web service that generates .gitignore files for software projects. A .gitignore file tells Git which files to leave untracked in a repository, such as temporary build outputs, editor settings, or operating system metadata. The service is publicly hosted by Toptal at toptal.com/developers/gitignore, where you can pick your operating system, programming language, and editor to get a ready-made file. The web server is written in Swift using the Vapor framework, which is a server-side Swift web framework designed to run on Linux and macOS. This is the application layer of the service: it handles requests, looks up the appropriate templates, and returns the generated content. The actual template files (the raw text patterns for each language and tool) live in a separate repository. You can run your own instance of the service locally using Docker. The repository includes Docker Compose files for both development and production modes. A development mode setup mounts the public assets and resource directories so changes are picked up without rebuilding the container. The development server starts at http://localhost:8080. The project also includes end-to-end tests covering both API responses and browser behavior, using Node.js-based tools. Generated .gitignore files are released under CC0, meaning they are in the public domain and carry no usage restrictions. Configuration options let you set a custom host origin, a URL subdirectory prefix, and a Google Analytics tag if you want to deploy your own branded instance.
← toptal on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.