how to create .gitignore using git command code example
Example 1: create gitignore
# creates gitignore file
$ 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