# Commit case-sensitive only filename changes in Git
If you have not changed the filename yet, use `git mv`:
```
git mv -f yOuRfIlEnAmE yourfilename
```
Otherwise, you can do:
```
git rm --cached yOuRfIlEnAmE
git add yourfilename
```
If you are doing batch renames, a brutal yet effective solution is:
```
git rm -r --cached .
git add --all .
```
---
## 📚 References
- [How do I commit case-sensitive only filename changes in Git?](https://stackoverflow.com/questions/17683458/how-do-i-commit-case-sensitive-only-filename-changes-in-git)