version control - Files in git showing as not staged after previously staging and committing files -


i have staged , committed handful of files locally git repo. in line remote repo, after performed git commit done git status , expecting see 1 commit ahead of repo.

however, found of files changed have found still marked modified , once again outside of staging area.

i committed new untracked files in commit. files not listed changed, must have been committed successfully.

what don't understand why these other files showing changed/unstaged again?

i using git 1.8.2.1.

what find confusing when git add -a , add files again , commit does recognise them. why take 2 commits desired result?

this output terminal when firstly git status, git commit , git status see am:

# on branch crmpicco-1872 # branch ahead of 'origin/crmpicco-1872' 3 commits. #   (use "git push" publish local commits) # # changes committed: #   (use "git reset head <file>..." unstage) # #       modified:   sass/iphone/page/sun.scss #       modified:   web/load/sun.inc.php #       modified:   web/content/iphone/sun.inc.php #       modified:   web/css/compressed/iphone/checkout.css #       modified:   web/css/compressed/iphone/style.css #       modified:   web/scripts/iphone/js/iphone.js #       modified:   web/scripts/jquery_mobile/swipe/swipe.jquery.js  git commit -m 'my commit message in here'  [crmpicco-1872 5f248ca] commit message in here  4 files changed, 45 insertions(+), 54 deletions(-)  git status  # branch ahead of 'origin/crmpicco-1872' 4 commits. #   (use "git push" publish local commits) # # changes not staged commit: #   (use "git add <file>..." update committed) #   (use "git checkout -- <file>..." discard changes in working directory) # #       modified:   web/content/iphone/sun.inc.php #       modified:   web/css/compressed/iphone/checkout.css #       modified:   web/css/compressed/iphone/style.css 

edit: here screenshot of happening right (again).

enter image description here


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -