Repository Not Found when pushing to GitHub remote

Your remote address is, compared to what github tells you:

 [email protected]:seterr/messages.git    <== your remote
 [email protected]:septerr/messages.git   <== GitHub actual repo address

You forgot the 'p' in septerr.

As mentioned in "GitHub pushing/pulling error", GitHub repo addresses are sensitive to typo or case.


Nick mentions in the comments:

I ran into an issue where I needed to change my repo address due to a change in GitHub username.
Here's the code for it:

git remote set-url origin [email protected]:username/reponame.git 

This will set the remote name to origin with the GitHub username of username.


If you are receiving this error and a typo is not the cause, as was my scenario, try opening .git/config and deleting the section:

[remote "origin"]   
url = [email protected]:yourgitusername/my_project.git  
fetch = +refs/heads/*:refs/remotes/origin/*

Then rerun the following (replace 'yourgitusername'):

git remote add origin [email protected]:yourgitusername/my_project.git   
git push -u origin master

This resolved the problem for me. Credit to this answer on a similar question: Git Push ERROR: Repository not found


I had the same problem. My issue was misunderstanding that I had to first create the empty repo on github before pushing to it. Doh! Including this here for anyone else who doesn't realize.