[英]GIT: repository not found (SSH is working and repository is correctly spelled)
I have a bunch of scripts that I would like to upload into a repository I created online. 我有一堆脚本要上传到在线创建的存储库中。
I did the following: 我做了以下事情:
$git add
$git commit
$git remote add origin git@github.com:<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
I checked to make sure I have access to SSH 我检查以确保可以访问SSH
$ssh -T git@github.com
Hi <name>! you've successfully authenticated, . . . .
I have several email addresses set up with my one github account and the one I am using is my primary address. 我使用一个github帐户设置了多个电子邮件地址,而我使用的是我的主要地址。
Below is my .gihub/config 以下是我的.gihub / config
$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@github.com:<userrname>/My-scripts.git
fetch = +refs/heads/*:refs/remotes/origin/*
Any advice? 有什么建议吗?
Are you sure you've created the repo on GitHub? 您确定已在GitHub上创建了存储库吗? If you load
如果您加载
https://github.com/<username>/My-scripts.git
in your browser, do you see the repo there? 在浏览器中,您看到那里的回购吗? Make sure you type
<username>/my-scripts.git
exactly as it appears in .git/config
. 确保您键入的
<username>/my-scripts.git
完全与.git/config
。 If you see a 404 page, your repo doesn't exist yet, and you need to create it on GitHub first. 如果看到404页面,则说明您的存储库尚不存在,您需要首先在GitHub上创建它。 Could be a small spelling error.
可能是一个小的拼写错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.