Could GitHub change its ToS to change ownership over the code?
<p>During an <a href="https://www.reddit.com/r/spacemacs/comments/8oc53x/microsoft_has_agreed_to_acquire_github_what_does/e04lmgq" rel="nofollow noreferrer">online discussion</a> about the possible steps MS might take after acquiring GitHub, the other user suggested that MS could change the ToS so that they become the owners of the code. </p>

<p>So imagine I have a project. I create it on my PC, attach a GPL license to it and publish it on GitHub. MS using the hypothetical ToS takes over my repository and changes the license to some other one. Is that possible?
(Would it be the same if instead of GPL, I reserved all rights to the code and my repository would be private)?</p>

<p>I am interested in this from the perspective of the EU citizen.</p>

<p>Regardless of the licence, you are the copyright owner.</p>

<p>So, unless you consent to Microsoft owning your code (transferring over the copyright), you're safe.</p>

<p>That's probably the kind of thing Microsoft would do though.</p>

<h1>Not for existing code</h1>

<p>I don't know all the finer points of where this might be legal, but generally speaking, it is illegal to relicense anything without explicit permission from the copyright holders. Although copyrights are typically assigned to the project owners by  contributors, code owners who hold the copyrights must give explicit permission for their content to be re licensed.</p>

<p>A similar issue came up on this very website with the shift from Creative Commons v3 to v4- the legality of a unilateral licensing change is questionable <em>even for an update to a newer version</em> of a license.</p>

<p>After all, it is illegal to fork GPL code (for instance) and then relicense a derivative work because the obligations of the license require that you retain the license and publish source code for any derivative works that you distribute. Contrast to the MIT license, where you can do almost anything with the code, including the distribution of closed-source forks.</p>

european-union terms-of-service copyright-transfer