git push -u origin main

remote: Repository not found.
fatal: repository '{{user_name}}/{{repo_name}}.git/' not found

Working Solution for Windows:

  • Open Control Panel from the Start menu.
  • Select User Accounts.
  • Select the 「Credential Manager」.
  • Click on 「Manage Windows Credentials」.
  • Delete any credentials related to Git or GitHub.
  • Once you deleted all then try to clone again.


Related Keywords: Developer, How-to, Solved, Git Push Fail, GitHub Private Repo