2012-01-25 1 views
2

2ファイルを編集してgit操作を実行しました。私は、ファイルを編集したときgit push origin master says編集したファイルとコミットされたファイルをすべて最新の状態にしました

git add script.html script.js script.css 
git commit -m "Updated" 
git status 
# On branch gh-pages 
# Changes not staged for commit: 
# (use "git add <file>..." to update what will be committed) 
# (use "git checkout -- <file>..." to discard changes in working directory) 
# 
# modified: index.html 
# 
no changes added to commit (use "git add" and/or "git commit -a") 

git push origin master 
Everything up-to-date 

は、なぜそれが最新のすべてを表示していますか?私はgithubに反映された変更を見ることができません。

+2

"ブランチのghページで" vs "gitプッシュ元のマスター" 'git push origin gh-pages'または' git push origin gh-pages:master'を意味しましたか? –

+0

私は 'git push origin master'を意味しました。ああ。これがghs-pagesに反映されていることがわかります! – anjanesh

+0

'git push -u origin gh-pages'(前にそのブランチをプッシュしていない場合)または' git push origin' – prusswan

答えて

0

ここでの問題は、マスターではなくgh-pagesでコミットを実行したことです。 gh-pagesを押すと、コミットした変更がプッシュされます。

関連する問題