I have got a Github organisation managed by my github account. All my repositories have been working well. When I create a new repository I set it as private and add my Github account as Collaborator. Suddenly all my repositories on all computers stopped "working". Everytime I want to pull or push a repository i get this error:
enter code hereremote: Repository not found.
fatal: repository 'https://github.com/Organisation/Repository.git/' not found
It is the same with all repositories and clients I am working with. Even with newly created private repos.
My workflow when creating a new repo is
git init
git remote add origin https://CopiedLinkToPrivateRepo
git add .
git commit -m 'my message'
git push origin master
That workflow has worked for years now. Until a few weeks ago when it suddenly stopped working.
Thanks to CodeWizard.
For all searching people, there seem to be two solutions.
git remote set-url https://[email protected]/usernameOrOrganisation/repository.git
. The Github website sometimes does not seem to provide the links with the username in it.