This workflow allows you to create .gitignore files with Alfred. It uses the templates from the github/gitignore repository, and combines them into a single file that you can copy into your project. The templates are stored on your machine, so you have easy access to them, even when you are on the move and don't have internet connectivity.
The workflow can be downloaded from Packal:
gitignore by jdno
Although it should be pretty self-explanatory, these are the requirements for this workflow:
After installing the workflow, you need to download the templates. Enter the following command into Alfred:
Executing this will clone the github/gitignore repository, and make the templates in it available for offline use.
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 and paste them into the `.gitignore` file in your project.
I hope some of you will find this workflow useful. If you experience any problems, please tell me so that I can fix them.