我有一个名为 cplusplus_learn 的目录,我的用户名是 apex_user(假设)在 git 中。在 cplusplus_learn 中,有一些文件和目录,我正在练习 C++ 语言。我想创建一个同名的仓库 cplusplus_learn,并将所有内容推送到 GITHUB 网站上。请问有人能够解释一下完成这个过程的完整步骤吗?
我查看了各种链接,但是感到非常困惑。大多数说已经创建了仓库。 convert-existing-non-empty-directory-into-a-git-working-directory github-error-repository-not-found-fatal 注意: 我想要从 终端 中完成所有操作。
我查看了各种链接,但是感到非常困惑。大多数说已经创建了仓库。 convert-existing-non-empty-directory-into-a-git-working-directory 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
上面展示的是我尝试过的内容。我知道有些地方不对,但我无法找出问题所在。