6 ms·
One option for those so inclined is to cryptographically sign commits with a key that lists both work and personal email address (assuming your enterprise’s pol
by cdogl 2y ago
One option for those so inclined is to cryptographically sign commits with a key that lists both work and personal email address (assuming your enterprise’s policy allows it). The employer retains control but you have a claim to credit for your work.
- tsimionescu 2y agoIf we're discussing companies willing to go to lengths to scrub you from their GitHub history, they can still replace all commits you've signed with new commits. You likely have no legal rights to that work, and git does allow you to rewrite history arbitrarily.
- shiomiru 2y ago> git does allow you to rewrite history arbitrarily. Technically yes, but the price is too great - everybody who has cloned the repos will now have to nuke their local copies too.
- tsimionescu 2y agoSure, but the same is true for unsigned commits as well, isn't it? Or can you modify the commit metadata without changing the commit hash in those cases?
- shiomiru 2y ago> Sure, but the same is true for unsigned commits as well, isn't it? Yes, I think so. As I understand, GP's idea was to sign your commits proactively.
- tsimionescu 2y agoMy question was, is signing the commits really useful? Isn't it just as hard or easy to scrub you from the repo history regardless of whether the commits are signed or not?
- withinboredom 2y agoIt depends on the jurisdiction. In the US, copyright assignment is usually permanent. In the EU and Canada, you can claw back your rights to a degree and even revoke the usage altogether, if you manage to claw it back because they did "evil" things with it (moral rights). In some cases (even in the US), if the employer does something that would be considered a "breach of contract", you can force them to remove all your code as well. So, it would not be in the company's best interest to scrub their git history.
- tsimionescu 2y agoI think even in the EU and Canada, you don't have any copyright interest in work your perform as part of your employment. The copyright on the work you produce for your employer is entirely theirs, from the moment it is created. Now, if you're a contractor performing work for a company, this may be quite different. But as an employee, I don't think you have any claim of authorship to the code you right as part of your job.
- withinboredom 2y agoLook up "moral rights." You have some ability to revoke the usage of your work if it violates moral standards.
- TheNewsIsHere 2y agoSome countries allow authors to transfer/assign or waive asserting their moral rights. Typically (and sensibly) this must be in writing.