我在 中创建了一个新存储库code.google.com,生成了code.google.com密码并更新了我~/.netrc的
machine code.google.com login <email-id> password <password>
根据 中的说明code.google.com,我可以clone使用以下命令访问存储库:
git clone https://code.google.com/p/<repository-name>/
之后,我将一些文件添加到存储库并执行,git add,然后是git commit. 但是当我执行时git push origin master它给出了以下错误
fatal: remote error: Repository not found
当谷歌搜索此问题时,我发现了几个链接,但其中提到的解决方法似乎不起作用。任何建议将不胜感激!
更新:我尝试了以下解决方法但不成功:
- 更新
url中.git/config采取username和password - 在命令中给出
usernameandpasswordurlgit clone - 更新
username并password使用全局git配置命令