在 github 上提交
我将存储库克隆到我的机器中。更改了一个文件。然后就提交了。
BackchannelApplication-1 git:(master) ✗ git commit
[master c5c7f47] Updating integration test
1 files changed, 13 insertions(+), 10 deletions(-)
➜ BackchannelApplication-1 git:(master) git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
git log
commit c5c7f47b6f96042beef3cddc051f5a38923d279a
Author: Name <emailid>
Date: Tue Oct 18 18:58:51 2011 -0400
Updating integration test
在我的机器上,我可以看到文件已更改,但在 github 上看不到相同的内容。为什么会这样呢?
谢谢!
I cloned a repository into my machine. Changed a file. Then committed it.
BackchannelApplication-1 git:(master) ✗ git commit
[master c5c7f47] Updating integration test
1 files changed, 13 insertions(+), 10 deletions(-)
➜ BackchannelApplication-1 git:(master) git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
git log
commit c5c7f47b6f96042beef3cddc051f5a38923d279a
Author: Name <emailid>
Date: Tue Oct 18 18:58:51 2011 -0400
Updating integration test
On my machine I can see the file is changed but can't see the same on the github. Why so?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
提交后,您需要使用 git push 将提交推送到外部存储库(GitHub)。
After committing, you need to push the commits to the external repository (GitHub) with
git push
.然后您需要将更改推回原点。
当您提交时,您仅将更改提交到计算机上的本地存储库。
You then need to push the change back to the origin.
When you committed, you committed your change only to the local repository on your machine.