text: Q:
  
  Git error: Changes not staged for commit
  
  I have my project + RestKit submodule. Error appeared when I changed RestKit settings. I added support armv6 and armv7 architecture. 
  git add .
  git add -u 
  git commit -m "new"
  # On branch master
  # 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)
  #   (commit or discard the untracked or modified content in submodules)
  #
  #   modified:   RestKit (modified content)
  #
  
  How to fix this error. 
  UPDATE: I don't run git add RestKit.
  UPDATE2: The strusture of my project is:
  
  I added submodule as 
  git submodule update -i
  
  A:
  
  You are apparently dealing with a submodule, so you should use the submodule workflow :
  # Modification on RestKit, for instance :
  cd RestKit
  git add .
  git commit -m "Support for armv6 & armv7"
  cd ..
  # RestKit submodule up-to-date, now update your project
  git add RestKit
  git commit -m "RestKit submodule updated"
  
  You can find more information here.
  Also : Git Book on Submodules
  
  