After using git rm src/*jpg, it is found that many jpgs in the src subfolder are deleted. When the commit is not submitted, you can use git log src/ to query the log of the src folder, and the following records will be displayed,
Copy the latest post-commit value, (press q to exit log mode) use git checkout ${commit} src/path/a.jpg format to restore, the above restore command is git checkout 140583f201841401aalfafafasfasdfa74 src/path/*.jpg,
You can restore all the jpgs under the path.