I pulled in a large number of scripts and made slight changes to all of them, which I wish to preserve.
Git has tracked these changes, in addition to a new script that I created, which is marked as untracked.
This made me wonder if there is a way I could add (and subsequently commit) only those files marked as modified and ignore the untracked file(s) / all other files for the time being.
In this instance, I am aware that I could simply commit the untracked file first, which would mean that only the modified files are left and that I could then commit those, but for those instances where there is more than one untracked file, I wonder if this is possible.
In short: how can I commit modified files only, preserving everything else as is?