我正在尝试将文件推送到git,但它似乎不起作用。它说,它找不到存储库,尽管它似乎存在。以下是终端命令线程。任何帮助都将不胜感激。
Bens-MacBook-Pro:week7 benmyhre$ cd site
Bens-MacBook-Pro:site benmyhre$ git init .
Initialized empty Git repository in /Users/benmyhre/Desktop/RubyProjects/week7/site/.git/
Bens-MacBook-Pro:site benmyhre$ git remote add origin git@github.com:bemyhre/site.git
Bens-MacBook-Pro:site benmyhre$ git commit -m'immapunch this screen'
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# README
# contact.html
# css/
# img/
# index.html
# projects.html
# untitled.html
nothing added to commit but untracked files present (use "git add" to track)
Bens-MacBook-Pro:site benmyhre$ git add
Nothing specified, nothing added.
Maybe you wanted to say 'git add .'?
Bens-MacBook-Pro:site benmyhre$ git add .
Bens-MacBook-Pro:site benmyhre$ git push origin master
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Bens-MacBook-Pro:site benmyhre$ ssh -T git@github.com
Hi bemyhre! You've successfully authenticated, but GitHub does not provide shell access.
Bens-MacBook-Pro:site benmyhre$ 发布于 2014-02-23 06:19:35
您的git URL似乎不正确。
转到github中的存储库页面,并复制中间右侧的克隆URL。
你确定和你用过的那个是一样的吗?
https://stackoverflow.com/questions/21961148
复制相似问题