Skip to content

Instantly share code, notes, and snippets.

@a2ikm
Created April 16, 2013 18:37
Show Gist options
  • Save a2ikm/5398395 to your computer and use it in GitHub Desktop.
Save a2ikm/5398395 to your computer and use it in GitHub Desktop.
Download .gitignore from https://github.com/github/gitignore
#!/bin/sh
if [ "$1" = "" ]; then
echo "Usage: git ignore TYPE"
else
type=$1
url="https://raw.github.com/github/gitignore/master/${type}.gitignore"
curl -s -o .gitignore $url
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment