Hacker News new | ask | show | jobs
by Anita_kiss 2877 days ago
Well this is a though one. There also is not enough information provided. Lets assume hes a regular employee.

Apart from the obvious that the employer absolutely has no right to demand a password, Code written for the company does not belong in a private repository.

Most contracts state that everything created during working hours belongs to the company. This means that he is in quiet the trouble if he writes on code for other companies when he is supposed to work for his employer.

In this case they have the right to demand access(not by demanding the password though)

An alternative would be to provide access using the means provided by GitHub.

The "boohoo my company is evil" narrative is understandable. But lets not forget that this situation would not exist , if all was handled correctly by the employee.