我在Git和GitHub上是绝对新的,我有以下问题想我的本地库链接到GitHub的帐户为什么我不能将这个远程GitHub仓库添加到我的本地GIT仓库作为远程?
我做的:
[email protected] MINGW64 ~/Documents/WS_vari/version-control/recipes (master)
$ git remote set-url origin https://github.com/AndreaNobili/recipes.git
fatal: No such remote 'origin'
其中https://github.com/AndreaNobili/recipes.git是所提供的HTTPS链接GitHub这个仓库。
为什么我会得到这个错误信息?什么意思没有这样的远程'起源'?我该如何解决这个问题?