Skip to content

Instantly share code, notes, and snippets.

@davidmerrick
Last active August 26, 2017 17:53
Show Gist options
  • Save davidmerrick/cdf7e116043de411ec35a98c4606782f to your computer and use it in GitHub Desktop.
Save davidmerrick/cdf7e116043de411ec35a98c4606782f to your computer and use it in GitHub Desktop.
git alias to generate gitignore file from gitignore.io
[alias]
gitignore = "!gitignore(){ curl https://www.gitignore.io/api/$1; }; gitignore"
# Example usage: git gitignore node,intellij,macos > .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment