好吧,我想这个问题很受欢迎,但我只是不明白。我在 GitHub 上创建了一个新的存储库,然后转到我的文件夹,其中有一些代码,我将执行以下步骤:
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/MyNick/MyCode.git
git push -u origin master
所以我得到:
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我究竟做错了什么?谢谢你。