我有一个目录说cplusplus_learn,我的用户名是git中的apex_user(比如说)。在 cplusplus_learn 里面,有一些我正在练习 C++ 语言的文件和目录。我想创建一个与 cplusplus_learn 同名的存储库,并将所有内容推送到 GITHUB网站。有人可以向我解释这样做的完整步骤。我浏览了各种链接,但完全困惑。主要是说已经进行了回购。
github-error-repository-not-found-fatal
注意:我想从终端做的所有事情。
$ cd cplusplus_learn
$ git init .
$ git commit -m 'My first commit'
$ git remote add origin https://github.com/apex-user.git
fatal: remote origin already exists.
$ git push -u origin master
fatal: repository 'https://github.com/apex-user/' not found
上面给出的是我尝试过的。我知道有什么问题,但我无法弄清楚。