Look at the pending files in Sourcetree:
Modified tracked files are marked with a yellow box with three dots, like my a. Untracked files are marked with a blue box with a question mark, like my b.
So, to add to the next commit only the modified tracked files, check the checkboxes for only the modified tracked files.
But perhaps this is what you mean by "manually" as being what you would prefer not to do? Then choose Actions > Open In Terminal and say git add -u
. If you now come back to Sourcetree and Refresh, you will see that exactly what you wanted to have happened has happened: only the modified tracked files have been staged. Now make your commit.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…