Licensing confusion with Github and Stack Exchange
<p>I posted code on Github with an Apache2 license but left the part &quot;Copyright {yyyy} {name of copyright owner}&quot; instead of adding the year and my name. Then I copied the code from Github and posted it on StackExchange w/o the license.</p>
<p>Which of the following statements is correct?</p>
<ol>
<li><p>The original license is invalid and the code is now governed by the creative commons license as specified by stack exchange.</p>
</li>
<li><p>The original license is valid and posting the code on StackExchange without it was a violation of that license.</p>
</li>
<li><p>The code is now governed by either the Creative commons license or Apache2 depending where you get it from.</p>
</li>
<li><p>Other</p>
</li>
</ol>

<p>Basically, statement 3 above is correct.</p>
<p>The owner of the copyright in a work may release that work unmder different, even incompatible, licenses, as many times as s/he chooses to do.  None of these releases cancels or invalidates any other. A person who obtains a work from a site where it is listed under a particular license, may rely on that license grant. The owner may (if the site allows) modify the license or remove the posted work, but this does not invalidate the license granted to those who obtained the work before any modification or removal.</p>
<p>An incorrect or incomplete copyright notice does not, under current law. invalidate the copyright, and to the best of my understanding will not invalidate either of the license mentioen in the question.</p>

licensing open-source-software