I have a GitHub handle that I've used for years, however, after joining a new company, they required that I register a new GitHub account under the company email address. Now I can't clone the private repo because the user.name is set as my normal GitHub handle.
I read on this page that I can add my username before the URL like git clone https://usernamenew@github.com/companyname/repo-name.git.
However, I get the error
Cloning into 'repo-name'...
remote: Repository not found.
fatal: repository 'https://usernamenew@github.com/companyname/repo-name.git/' not found
How do I clone the company's repo using a different user name?