git how to create a gitignore file for your repo 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