Jump to content

Create .gitignore files with Alfred

Recommended Posts



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:
  • OS X
  • Alfred 2
  • Git
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.
Have fun!
I hope some of you will find this workflow useful. If you experience any problems, please tell me so that I can fix them.  :)
Edited by jdno
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...