最近我在GitHub上开设了一个新帐户。 我正在在线跟随Michael Hartl的Rails教程(http://www.railstutorial.org/book#fig:github_first_page)并按照他的说明设置了我的git,这也符合GitHub的设置说明。 无论如何,GitHub上的“下一步”部分是:
mkdir sample_app
cd sample_app
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:rosdabos55/sample_app.git
git push origin master
我一直顺利进行到最后的指令 (git push origin master),然而当我在终端中输入了那行代码时,出现了以下错误信息:
致命错误:未指定路径。请参阅'
man git-pull
'了解有效的URL语法。
我可能做错了什么?
这是我的 .git/config 文件的内容(由 Jefromi 从 git config -l
的输出中重构,并粘贴在下面的注释中):
[user]
name = Ross
email = [REDACTED]
[core]
editor = gvim -f
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@github.com:
fetch = +refs/heads/*:refs/remotes/origin/*