git.exe push --progress "origin" main:main fatal: Could not read from remote repository

104 views Asked by At

I am trying to push my code to Github with TortoiseGit after I finish my implementation. However,I am encountering this problem.

I've been trying this command in git bash, I was also trying to push with using tortoiseGit and Visual Studio. All don't work as expected.

I've cloned my repository by using HTTPS url from GitHub. In the past few weeks, it works all fine. But, today, I am encountering that I'm not allowed to push back to Github.

git.exe push --set-upstream --progress origin main
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists."

git remote -v
origin  https://github.com/<username>/folder.git (fetch)
origin  https://github.com/<username>/folder.git (push)

I even tried to check if my remote URL is correct or not.

0

There are 0 answers