2016-07-26 14 views
0

ここに行ったこと:私のファイルが変更されたことをgitが認識しないのはなぜですか?

私はいくつかのファイルをコミットしました。私は、この状態

$ git status 
warning: LF will be replaced by CRLF in topGamesMenu.php. 
The file will have its original line endings in your working directory. 
# On branch TopGamesMenu 
# Changes to be committed: 
# (use "git reset HEAD <file>..." to unstage) 
# 
#  modified: index.php 
#  modified: nbproject/private/private.xml 
#  new file: topGamesMenu.php 
# 

を得、その後 iが

git push -m 'logos vom den besten spielen im menu implementiert' 

をプッシュしたかったが、私はマッサージのパラメータはpushコマンドでコミットしないでなければなりません実現しました。 はので、私のgitのステータスはこれ以上の変化を示し、このコマンドの後に再び

$ git commit -m 'logo von dem vier besten spielem um menu implementiert' 
[TopGamesMenu warning: LF will be replaced by CRLF in topGamesMenu.php. 
The file will have its original line endings in your working directory. 
8fa4dea] logo von dem vier besten spielem um menu implementiert 
warning: LF will be replaced by CRLF in topGamesMenu.php. 
The file will have its original line endings in your working directory. 
3 files changed, 133 insertions(+), 86 deletions(-) 
create mode 100644 topGamesMenu.php 

約束します。

$ git status 
# On branch TopGamesMenu 
nothing to commit, working directory clean 

--- EDIT ---

Gitのプッシュdoesntの仕事。 git says

Everything up-to-date 

何が問題なのですか?

+1

を使用するものは何もそれ自体は間違っていないはずです。いくつかのファイルで改行が変更されたため、新しいコミットが簡単になりました。ちなみに、 'git push 'は実際に動作しましたか? –

+1

何も問題ありません。あなたの最初のコマンドは 'git add'で、' git commit'の準備領域をメッセージで準備しました。そして 'git push 'の準備が整いました。 –

+0

@TimBiegeleisenはプッシュしません。 gitは「すべて最新」と言います。リモートリポジトリに変更はありません。 – user2440762

答えて

1

あなたが見ているものは何でも期待されます!

Git変更されたファイルは、一度コミットされるとgit statusに表示されません。あなたは、上流に設定しているならば、あなたが変更されたファイルを表示したい場合は実際には、それは

Your branch is ahead of 'origin/<your branch>' by 1 commit. 

のようなものは、あなたが

git log --name-only 
+0

git logでコミットが見つかりましたが、どうすればそれを押すことができますか? *** 日: $ gitのログ は8fa4dea4ad152c68f7c1284357891641d20ba0ea 著者コミット火7月26日午前2時20分45秒2016 0200 ロゴ・フォン・デム・フィアbesten spielem UMメニューimplementiert .... – user2440762

+0

Gitのプッシュ原点を< your_branch_name> –

関連する問題