gitignore is an Alfred workflow that lets you create .gitignore files from Alfred's input interface. It uses templates provided by GitHub, and combines them into a single .gitignore file.
- Works offline
- Uses battle-tested templates from GitHub
- Easy to use
After installing the workflow, you need to download the templates. Enter the following command in Alfred:
Executing this will clone the github/gitignore repository, and make the templates in it available on your machine.
To use this workflow, simply type in:
You will now see a list of all templates installed on your machine. You can search for specific templates by typing in their name. Selecting a template will place add it to the command line.
If you've selected all templates that you want to combine, simply select the first item in the list called Build .gitignore file. This will start the generation of the template, and open it in TextEdit once it has been created.
Copy & paste the contents of the file into the .gitignore file of your project.
Just FYI: The temporary file is created in /tmp/, and will be deleted automatically after three days.