I created .gitignore and copied the content you provided in your link and saved it, then did the following, but it looks like it didn’t commit anything. Is this expected, OK? I tried first without virtual env and then I activated venv and tried again, but get the same result.
(Sorry for needing so much help, but I really appreciate your patience with me!)
Stevens-MacBook-Pro:myhellowebapp stevencooke$ git commit -a -m "First commit"
On branch master
nothing added to commit but untracked files present