I tried to push / pull code from a private repository which I have access to and instead I get the error below:
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/path-togit.git/'
I have searched and tried all solutions provided on different platforms, but none works. For example, deleting the vscodegithub entry in passwords and keys, but still it doesn’t work.
I tried the following but they do not work in my case:
- Error pushing to Git remote with HTTP #1138
- Changing the Git user inside Visual Studio Code
- How can I remove a GitHub password from Visual Studio Code?
I have seen that people reporting these as successful are Windows and Mac users. Is there a solution that works for Ubuntu?
P.S.: I can successfully push/pull using the normal terminal. My problem is with the Visual Studio Code terminal and my operating system is Ubuntu 20.04 (Focal Fossa).