如何从 C9 推送到 Github?

How to push to Github from C9?

我将我的 Github 帐户链接到 C9 并克隆了一个私有存储库。然后我对文件进行了一些更改,并通过 IDE 上传了几个文件夹,最后在 C9 的终端中使用了 git push。这导致文件中的更改更新,但是我上传的新文件夹和其中的文件不存在。

您告诉我们:

and in the end used git push in the terminal in C9. This caused the changes in the files to update, but the new folders that I had uploaded and the files in them are not there.

您可能已经对存储库执行了 git push,但这不会发送任何未 暂存 的 files/folders 新的或旧的。要查看您在本地的位置,请从 Git 控制台键入 git status。我的猜测是,您会在 "Changes not staged for commit" 部分下看到似乎从未进入存储库的文件夹。要解决此问题,您可以对文件和文件夹执行 git add,然后再次推送。