致命:未找到存储库'https://github.com/user_name/first_app.git/'

时间:2013-11-26 04:08:37

标签: git version-control github repository

我试图将文件推送到github但我收到此错误。不幸的是,他们所谓的用户名都不起作用!有什么想法吗?

Monas-MacBook-Pro:first_app mona$ git push -u origin master
Username for 'https://github.com': lamiastella
Password for 'https://lamiastella@github.com': 
remote: Repository not found.
fatal: repository 'https://github.com/lamiastella/first_app.git/' not found
Monas-MacBook-Pro:first_app mona$ git push -u origin master
Username for 'https://github.com': jalal@wisc.edu
Password for 'https://jalal@wisc.edu@github.com': 
remote: Repository not found.
fatal: repository 'https://github.com/lamiastella/first_app.git/' not found

以下是我在此命令之前使用的命令列表:

521  git init
522  git add .
523  git status
524  git commit -m "hi"
525  git status
526  git log
527  git checkout -f
528  git status
531  git remote add origin https://github.com/lamiastella/first_app.git

2 个答案:

答案 0 :(得分:1)

如果您需要编写所有流程的脚本,包括创建新的仓库,您可以查看“Github v3 API - create a REPO”或this gist

# Test drive on a single liner
# TOKEN="xxxx" org="plone-gomobile" p=test ; curl -v -XPOST -H "Authorization: token $TOKEN" https://api.github.com/orgs/$org/repos -d '{"name": "'"$p"'"}'
curl -v -XPOST -H "Authorization: token $TOKEN" https://api.github.com/orgs/$org/repos -d '{"name": "'"$p"'"}'

点击“Authentication”了解详情,并注意OAuth2 tokens可以是acquired programmatically,这对您的脚本有帮助。

答案 1 :(得分:1)

我刚遇到同样的问题。在我的情况下,问题不在于我,这是因为Github在他们的状态页面上显示了他们的SSH访问问题(https://status.github.com/

  

"我们正在研究存储库访问和一些GitHub.com功能的问题。一旦我们有更多信息要分享,我们将向您报告。"

相关问题