A developer wants to commit only certain files. But unable to commit as it requires clean(staged and committed all changes) working directory.
When in doubt, just use the command prompt. “git add ” for the things to stage and “git commit -m ” after you’ve added them all.
If you have changes locally, you can “git stash”, make your changes and then “git stash pop” after you committed them.