github提交的文件不显示 [英] github committed files don't show up on

查看:156
本文介绍了github提交的文件不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新问题:

我将一个文件添加到我的回购库(将其拖到我的回购文件夹中),然后在git bash中将我的cd添加到我的回购库和git init,git add filename,git commit -m'提交文件'。当我说git状态时,它说

  $ git status 
#on分支大师
#您的分支领先由2个提交

工作目录清理。没什么可提交的。

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

解决方案


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


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


Newb question:

I add a file to my repo (drag it to my repo folder) then in git bash I "cd" to my repo and "git init", "git add filename", "git commit -m 'committing files'". When I git status it says

$ git status
#on branch master
#your branch is ahead of origin master by 2 commits
#
working directory clean. Nothing to commit.

But they don't show up in my repo when I refresh the page on my github site. Do I have to push them to the site?

解决方案

Do I have to push them to the site?

Yes. Commits are to your local repository first. You need to git push origin master for the commits to be on GitHub.

这篇关于github提交的文件不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆