Git auto commit my staged and unstaged changes, either use git CLI or Sourcetree. I only use git add "file path",and It shows one file to commit when I check with git status, but after I use git commit -m "message", It commit my two files.
my git version 2.32.0