2011-10-18 188 views
1

我克隆了一個存儲庫到我的機器。更改了一個文件。然後承諾它。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上看不到相同的內容。爲什麼這樣?

謝謝!

回答

8

提交後,您需要將提交推送到外部存儲庫(GitHub)git push

+0

哎呀。謝謝! – Ava

2

然後您需要將更改返回到原點。

// of the format: git push [alias] [branch] 

git push origin master 

當您提交時,您只將更改提交給本機的本地存儲庫。