Making a GitHub repository of a Python project, you are likely to have a bunch of the compiled Python files included too. These are useless – they are produced at runtime if needed – and clutter up the repo.
There is an easy way to get rid of them after you realise your mistake. The second step involves editing .gitignore , the file that tells git what files to ignore. I prefer to use nano on the Mac, because it gives a little cheat sheet at the bottom of its display.
and add the one line.
Thanks to Yuji Tomita for the tip.