git log --since="2023-01-01" --until="2023-07-30" -S "变量名"

git log --since="2023-01-01" --until="2023-07-30" -S "变量名" -p

查看变化详情