I think the main point of the argument is that you should not upload other people’s code to GitHub. Whether you upload your own code is your choice to make. Same goes with uploading to YouTube. You should not upload an entire film to YouTube if you do not have the right to distribute the film