code.google.com:git:fatal:remote error:找不到存储库 [英] code.google.com: git: fatal: remote error: Repository not found
问题描述
我在 code.google.com
中创建了一个新存储库,生成了 code.google.com
密码并用
machine code.google更新了我的〜/ .netrc
。 com登入< email-id>密码<密码>
根据 code.google.com $ c中的指示$ c>,我可以使用以下命令
存储库:
git clone https://code.google.com/p/<repository-name>/
之后,我添加了一些文件到存储库并执行, git add
,然后是 git commit
。但是当我执行 git push origin master
时,它给出了以下错误:
致命:远程错误:找不到存储库
当这个问题google'ed时,我发现了几个链接但是提到的解决方法似乎并不奏效。任何建议将高度赞赏!
更新:
我尝试了以下解决方法但未成功:
- 更新
.git / config
中的url
,将username
和password
- 给出
用户名$
git clone $ c $>中的
和 密码
中的url
使用全局<$ c $命令 - 更新
用户名
和密码
c> git config命令
原始'来确认远程通信。
是否在 Google Project Hosting 。如果是这样,也许你使用了错误的密码(谷歌密码与谷歌帐户密码)。
[b]
克隆一个Google项目时,您会得到一个自定义存储库名称。例如,我克隆了playn项目并获得了gozoner-playn-too项目名称(根据我提供的信息)。当你制作本地克隆时,它需要属于这个存储库。在我的情况下:
git clone https://code.google.com/p/gozoner-playn-too
然后按下按钮:
$ git push origin
计数对象:3,完成。
使用多达2个线程的增量压缩。
压缩对象:100%(2/2),完成。
写入对象:100%(2/2),256字节,完成。
...
请注意,如果您已经签出了错误的克隆(如我怀疑)你可以将url更改为正确的:
git remote set-url origin https:// code。 google.com/p/gozoner-playn-too
在此之后,.git / config文件包含此:
pre code $远程原产地
fetch = + refs / heads / *:refs / remotes / origin / *
url = https://code.google.com/p/gozoner-playn-too
I have created a new repository in code.google.com
, generated the code.google.com
password and updated my ~/.netrc
with
machine code.google.com login <email-id> password <password>
As per the instruction in the code.google.com
, I was able to clone
the repository using the following command:
git clone https://code.google.com/p/<repository-name>/
and after that I added some files to the repository and executed, git add
, followed by git commit
. But when I executed git push origin master
it gave the following error
fatal: remote error: Repository not found
When google'ed for this issue, I found couple of links but the work-around that was mentioned in that didn't seem to work. Any suggestion would be highly appreciated!
UPDATE: I have tried the following work-arounds but unsuccessful:
- Update the
url
in the.git/config
to takeusername
andpassword
- Give the
username
andpassword
in theurl
in thegit clone
command - Update
username
andpassword
with globalgit
config command
Try 'git remote show origin' to confirm the remote communication.
Is the 'security' button checked at Google Project Hosting. If so, maybe you are using the wrong password (Google Code password versus Google Account password).
[edit]
When you clone a Google project, you get a custom repository name. For example, I cloned the 'playn' project and was given a project name of 'gozoner-playn-too' (based on the info that I provided). When you make your local clone it needs to be of this repository. In my case:
git clone https://code.google.com/p/gozoner-playn-too
And the push then works:
$ git push origin
Counting objects: 3, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 256 bytes, done.
...
Note, if you've already checked out the wrong clone (like I suspect) you can change the url to the correct one with:
git remote set-url origin https://code.google.com/p/gozoner-playn-too
After this the .git/config file has this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = https://code.google.com/p/gozoner-playn-too
这篇关于code.google.com:git:fatal:remote error:找不到存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!