Skipping indexing of changed files in Git
In Git, you can do both file indexing and committing with one command, thus simplifying your work by reducing everything to one command instead of two.
To do this, add the -a flag to the commit command, and skip the add command:
git commit -a
This command will automatically index all currently monitored files. However, you should not overuse this command, as unwanted changes may be saved in the same stack.
Try the command described.