恢复前的状态
先恢复到未暂存区 git restore --staged src/main/resources/schema.sql
git restore --staged src/main/resources/schema.sql
从暂存区恢复 git checkout -- src/main/resources/schema.sql
git checkout -- src/main/resources/schema.sql