Skip to content

Instantly share code, notes, and snippets.

@oskarhagberg
Created May 2, 2013 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oskarhagberg/5502180 to your computer and use it in GitHub Desktop.
Save oskarhagberg/5502180 to your computer and use it in GitHub Desktop.
Get .gitignore from github
# In your .bash_profile or .profile add
# Github gitignore
function gitignore() {
curl -H "Accept:application/vnd.github.v3.raw+json" "https://api.github.com/gitignore/templates/$@"
}
# Example usage:
# $ git init
# $ gitignore > .gitignore
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment