我有一个由我的 github 帐户管理的 Github 组织。我的所有存储库都运行良好。当我创建新存储库时,我将其设置为私有并将我的 Github 帐户添加为协作者。突然间,我所有计算机上的所有存储库都停止了“工作”。每次我想拉取或推送存储库时,我都会收到此错误:
enter code hereremote: Repository not found.
fatal: repository 'https://github.com/Organisation/Repository.git/' not found
与我合作的所有存储库和客户端都是一样的。即使使用新创建的私人存储库。
创建新存储库时我的工作流程是
git init
git remote add origin https://CopiedLinkToPrivateRepo
git add .
git commit -m 'my message'
git push origin master
该工作流程已经运行多年。直到几周前它突然停止工作了。
感谢 CodeWizard。
对于所有寻找的人来说,似乎有两种解决方案。
git remote set-url https://[email protected]/usernameOrOrganisation/repository.git
。 Github 网站有时似乎不提供带有用户名的链接。 卸载并重新安装 git,一切都会正常工作。