Fatal: Could not read from remote repository

My project has had a ton of commits, but sudo git push has suddenly stopped working today… It yields the error

fatal: Could not read from remote repository.

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

I looked around, and the suggestions are all ssh related. The project, however, uses https. Here is the .git/config file

[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[remote "origin"]
	url = https://github.com/ArchLuke/YouSuck.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

Cloning, pulling, etc all work fine, but pushing isn’t…

3 Likes

Same with us - everyone in our team suddenly cannot push to one of our repositories with the same error message (but only one of our repositories). Yesterday it was working fine.

2 Likes

This has started working again.

1 Like