commit only single file in git

C++
git commit [some files]
Source

Also in C++: