2011-10-18 11 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

コミット後、コミットをgit pushで外部リポジトリ(GitHub)にプッシュする必要があります。

+0

おっと。ありがとう! – Ava

2

変更を元に戻す必要があります。

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

git push origin master 

あなたがコミットしたときは、マシン上のローカルリポジトリにのみ変更をコミットしました。

関連する問題