【发布时间】:2016-08-09 20:40:21
【问题描述】:
我是 Git/GitHub 的新手。试图将我的文件推送到我设置的新仓库,但它不起作用。这是我的过程:
- 在 GitHub 上设置存储库。
- 在 repo 上初始化远程。
git remote add origiN <URL> - 检查没问题。
git remote -v
这似乎都在按计划进行,终端机返回
origiN <URL> (fetch)
origiN <URL> (push)
...正如预期的那样。
然后,当我运行 git push 时,我得到:
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add <name> <url>
and then push using the remote name
git push <name>
...但我以为我已经配置了远程存储库?
我错过了什么?
【问题讨论】: