我最近在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
Run Code Online (Sandbox Code Playgroud)
我一路走到最后一条指令(git push origin master)没有任何问题.但是,当我将最后一行输入到终端时,我收到此错误消息:"致命:未指定路径.请参阅'man git-pull'以获取有效的url语法." 我可能做错了什么?
以下是.git/config的内容(由Jefromi从man git-pull下面粘贴到评论的输出中重建):
[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/*
Run Code Online (Sandbox Code Playgroud)