How do I commit case-sensitive filename changes in Git?

I renamed some files to name.jpg, like Name.jpg.
Git doesn’t recognize these changes, so I had to delete the file and re-upload it.
Is there a way for Git to be case sensitive when checking for filename changes?
I haven’t changed anything in the file itself.

Solutions

Here some solutions to fix git case-sensitive filenames.

The correct case for Git filenames for whole repo:

git rm -r --cached .
git add --all .

git status ##Review that **only** changes staged are renames

## Commit your changes after reviewing:
git commit -a -m "Fixing file name casing"
git push origin main

Change the Git system global or local configuration to make file and folder names case sensitive

global configuration

git config --global core.ignorecase false

local configuration

git config core.ignorecase false