【发布时间】:2016-04-27 00:47:31
【问题描述】:
我刚刚创建了一个新的 github 帐户,然后在我的 Windows 7 上安装了 GitHub。
我尝试使用我的命令行但是当我输入git 时说
git 未被识别为内部或外部命令。
我检查了路径,它是C:\Users\me\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff3I,可以在该路径中找到cmd 文件夹。
但是,无论如何,为了避免散列,我开始使用 Git Shell。当我尝试做git push 时,我得到了
Warning: Permanently added 'github.com,192.30.252.128' (RSA) to the list of know
n hosts.
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我 authenticated 到 gitHub。我也有generated SSH 密钥,但是当我尝试将它添加到我在 gitHub.com 帐户中的 SSH 密钥中时,我得到了Key is already in use。
所以,我不知道发生了什么。我已经尽力了,请帮助我。
谢谢
【问题讨论】:
-
你有 git 遥控器吗?如果没有,请学习如何here。
-
@intboolstring 我做了
git remote add origin https://github.com/me/myproj.git,我得到了fatal: remote origin already exists. -
尝试运行
git branch -a -vv(并告诉我结果) -
您的 github 帐户未按照远程 url 的建议通过 ssh 密钥进行身份验证。您正在使用密码身份验证。