【发布时间】:2018-10-04 12:57:02
【问题描述】:
我正在使用 codeigniter 框架。我想将我的项目上传到 github。我有用户名和密码。在 github 我有一个存储库。我想将我的项目上传到该存储库。我尝试使用 git 桌面。我的系统是 32 位的。所以我尝试使用命令提示符来使用 git bash。我的项目文件夹在我的桌面上。我不知道如何将已经存在的存储库连接到我的本地文件夹。我尝试了很多命令,例如
git init
git remote add origin https://github.com/yourusername/your-repo-name.git
git commit -m "adding files"
但我的文件没有上传到 github。我正在使用 codeigniter,所以有很多文件,如应用程序、资产、系统文件夹。我需要上传这些文件夹和文件。请帮帮我。
【问题讨论】:
-
在 git commit -m "adding files" 之后 git status 的输出是什么?有没有使用 git push 命令上传文件到 Github?