github add .gitignore code example
Example 1: git add gitignore
$ touch .gitignore
Example 2: how to generate a .gitignore
echo "function gi() { curl -L -s https://www.gitignore.io/api/\$@ ;}" >> ~/.bash_profile && source ~/.bash_profile
$ touch .gitignore
echo "function gi() { curl -L -s https://www.gitignore.io/api/\$@ ;}" >> ~/.bash_profile && source ~/.bash_profile