DEV Community

Discussion on: Initialize, Populate, and Post Your Git Repo to GitHub in a Single Step

Collapse
 
agc93 profile image
Alistair Chapman

Nice post!

If you're willing to also depend on curl you could replace your local copy of .gitignore using GitHub's repo, so something like the following:

STACK="Scala" # as an example
curl https://raw.githubusercontent.com/github/gitignore/master/$STACK.gitignore -o .gitignore

For npm lovers, there's also utilities to download gitignore files and license files