git Status Shows Files in the New and Modified Section -


i've got interesting occurrence here. i've been developing awhile (develop on windows, files moved linux vm, commits made vm) , have created number of new files. when run git status, shows new files in both new file: section , modified: section.

here's result of git status:

# on branch 2.x-merge # branch ahead of 'composer/2.x-merge' 1 commit. # # changes committed: #   (use "git reset head <file>..." unstage) # #       new file:   sp/elasticsearch/elasticsearch.php #       new file:   sp/elasticsearch/filters/andfilter.php #       new file:   sp/elasticsearch/filters/boolean.php #       new file:   sp/elasticsearch/filters/orfilter.php #       new file:   sp/elasticsearch/queries/boolean.php #       new file:   sp/elasticsearch/queries/filtered.php #       new file:   sp/elasticsearch/queries/match.php #       new file:   sp/elasticsearch/queries/matchall.php #       new file:   sp/elasticsearch/queries/term.php #       new file:   sp/elasticsearch/esfilter.php #       new file:   sp/elasticsearch/esinserter.php #       new file:   sp/elasticsearch/esquery.php #       new file:   sp/elasticsearch/esquerybuilder.php #       new file:   tests/sp/elasticsearch/estest.php #       new file:   tests/sp/elasticsearch/esfiltertest.php #       new file:   tests/sp/elasticsearch/esquerytest.php # # changes not staged commit: #   (use "git add <file>..." update committed) #   (use "git checkout -- <file>..." discard changes in working directory) # #       modified:   sp/elasticsearch/elasticsearch.php #       modified:   sp/elasticsearch/filters/boolean.php #       modified:   sp/elasticsearch/filters/orfilter.php #       modified:   sp/elasticsearch/queries/boolean.php #       modified:   sp/elasticsearch/esfilter.php #       modified:   sp/elasticsearch/esquery.php #       modified:   sp/elasticsearch/esquerybuilder.php #       modified:   build.xml #       modified:   tests/sp/elasticsearch/estest.php #       modified:   tests/sp/elasticsearch/esquerytest.php # 

if you'll notice, appears in modified section (except build.xml) appears in new section, , these new files should.

the commit went fine, did -am , there no issues, i'm wondering if knows why happens, means, or how happens.

thanks in advance.

notice headings on 2 sections: changes committed , changes not staged commit.

when use git add some_file.txt current state of file (in case some_file.txt) staged included in next commit, file appear in changes committed list. if make further changes file before run git commit changes won't staged unless run git add again, file appear in changes not staged commit list.

when ran git commit, passed -a flag (short --all) automatically stages files have been modified or deleted. equivalent running git add on files in changes not staged commit list before running git commit.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -