code.google.com:git:fatal:remote error:找不到存储库 [英] code.google.com: git: fatal: remote error: Repository not found

查看:117
本文介绍了code.google.com:git:fatal:remote error:找不到存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 code.google.com 中创建了一个新存储库,生成了 code.google.com 密码并用

  machine code.google更新了我的〜/ .netrc 。 com登入< email-id>密码<密码> 

根据 code.google.com ,我可以使用以下命令 clone 存储库:

  git clone https://code.google.com/p/<repository-name>/ 

之后,我添加了一些文件到存储库并执行, git add ,然后是 git commit 。但是当我执行 git push origin master 时,它给出了以下错误:

 致命:远程错误:找不到存储库

当这个问题google'ed时,我发现了几个链接但是提到的解决方法似乎并不奏效。任何建议将高度赞赏!

更新:
我尝试了以下解决方法但未成功:


  1. 更新 .git / config 中的 url ,将 username password

  2. 给出用户名 git clone 中的密码中的 url 使用全局<$ c $命令

  3. 更新用户名密码 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:

  1. Update the url in the .git/config to take username and password
  2. Give the username and password in the url in the git clone command
  3. Update username and password with global git 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆