我按照说明尝试创建一个远程存储库,似乎我出于某些原因无法从我的mac。任何输入或帮助将不胜感激。下面是我一直使用的终端命令集。有什么想法吗?
Bens-MacBook-Pro:week7 benmyhre$ mkdir my_web
Bens-MacBook-Pro:week7 benmyhre$ cd my_web
Bens-MacBook-Pro:my_web benmyhre$ git init
Initialized empty Git repository in /Users/benmyhre/Desktop/RubyProjects/week7/my_web/.git/
Bens-MacBook-Pro:my_web benmyhre$ touch README
Bens-MacBook-Pro:my_web benmyhre$ git ad README
git: 'ad' is not a git command. See 'git --help'.
Did you mean one of these?
add
am
Bens-MacBook-Pro:my_web benmyhre$ git add README
Bens-MacBook-Pro:my_web benmyhre$ git commit -m 'first commit'
[master (root-commit) 4e7b51d] first commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README
Bens-MacBook-Pro:my_web benmyhre$ git remote add origin https://github.com/bemyhre/my_web.git
Bens-MacBook-Pro:my_web benmyhre$ git push origin master
Username for 'https://github.com': #myusernamewenthere
Password for 'https://bemyhre@github.com':
remote: Repository not found.
fatal: repository 'https://github.com/bemyhre/my_web.git/' not found
答案 0 :(得分:0)
确保存储库确实存在。如果您正在尝试推送到尚未在GitHub上创建的存储库,您将收到此错误。更多详情https://help.github.com/articles/error-repository-not-found