github提交的文件没有显示出来

McK*_*rks 4 push github

新问题:

我将一个文件添加到我的仓库(将其拖到我的仓库文件夹中)然后在git bash中我"cd"到我的仓库和"git init","git add filename","git commit -m'提交文件'".当我说git status时

$ git status
#on branch master
#your branch is ahead of origin master by 2 commits
#
working directory clean. Nothing to commit.
Run Code Online (Sandbox Code Playgroud)

但是当我在我的github网站上刷新页面时,它们不会显示在我的仓库中.我是否必须将他们推送到网站?

vcs*_*nes 7

我是否必须将他们推送到网站?

是.首先提交到本地存储库.你需要git push origin master提交GitHub上的提交.