I once had a company give me a take home assignment on bitbucket. Private repo. Got the work, made the API endpoint that did the thing.
Followed up with them. No response. Nothing for a week. Then suddenly I get an email that they merged my code and they forgot that I had access to the repo. I could see that they were selectively merging canadates code into their own system. When I asked them with a followup if they had any questions on the code, no response and suddenly I had no access on the git side.
Yeah they were crowd sourcing an app. I just did a bunch of free work. Never again. Nowadays I just reject jobs that require any coding outside an interview. It's a two way street, it's not worth giving people free work.