The huge difference being that you do have the right to upload to GitHub if the code is released under an OSS license. If a project asks you nicely not to it would be equally nice to honor that, but there is no legal obligation to do so. Putting a copyrighted movie on Youtube to which you have no distribution rights is comparing apples to oranges and not the same thing.