我有一堆脚本想上传到我在线创建的存储库中。GIT:找不到存储库(SSH正在运行且存储库拼写正确)
我做了以下内容:
$git add
$git commit
$git remote add origin [email protected]:<USERNAME>/My-scripts.git **[i copied this from the website]**
$git push
$ git push origin master
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
我检查,以确保我有机会获得SSH
$ssh -T [email protected]
Hi <name>! you've successfully authenticated, . . . .
我已经建立了我的一个GitHub的帐户和一个我几个电子邮件地址使用是我的主要地址。
下面是我.gihub /配置
$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = [email protected]:<userrname>/My-scripts.git
fetch = +refs/heads/*:refs/remotes/origin/*
有什么建议?
必须有之间github.com和用户名 –
我没有使用冒号冒号,我输错在上面的文章。 – GeneHunter
确保原点和主控都存在。将git配置文件添加到问题('.git/config')可能有助于我们确定这一点。 –