Why that Git always commit my unstaged files?

Viewed 143

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

1 Answers

I finally found that it is caused by pre-commit. I remove that and it works now. But that is weird, I will try more test and maybe make an issue report.

Related