I am having a problem in git repository on selected files commit.
As in SCM or SVN if I have modified 4 files.But want to commit only two then I can easily commit the selected files only.
But in git when using cmd: git commit -a.It is going to commit all modified files. If use cmd like git commit filename filename.It is not working.
So any help how to commit only selected files in git.