git command to create a git ignore file terminal code example
Example 1: create gitignore
# creates gitignore file
$ touch .gitignore
Example 2: how to generate gitignore file
echo "
bin/**
lib/**
pyvenv.cfg
**.pyc
" > .gitignore
cat .gitignore